<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Android Development &#187; sdcard</title>
	<atom:link href="http://www.androiddevelopment.org/tag/sdcard/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.androiddevelopment.org</link>
	<description>Applications made for Android</description>
	<lastBuildDate>Fri, 24 Jun 2011 02:41:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to create and use the SD Card with the Android Emulator</title>
		<link>http://www.androiddevelopment.org/2008/11/11/how-to-create-and-use-the-sd-card-with-the-android-emulator/</link>
		<comments>http://www.androiddevelopment.org/2008/11/11/how-to-create-and-use-the-sd-card-with-the-android-emulator/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 08:24:45 +0000</pubDate>
		<dc:creator>patrick</dc:creator>
				<category><![CDATA[Development Setup]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[emulator]]></category>
		<category><![CDATA[media card]]></category>
		<category><![CDATA[mksdcard]]></category>
		<category><![CDATA[sdcard]]></category>
		<category><![CDATA[use]]></category>

		<guid isPermaLink="false">http://www.androiddevelopment.org/2008/11/11/how-to-create-and-use-the-sd-card-with-the-android-emulator/</guid>
		<description><![CDATA[By default the Android emulator does not have an SD card enabled. I was looking for this while I tried to save some images which I viewed on the Android browser within the emulator. The emulator told me that it can not download / save the image because there is no SD card installed. Well, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.androiddevelopment.org%2F2008%2F11%2F11%2Fhow-to-create-and-use-the-sd-card-with-the-android-emulator%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.androiddevelopment.org%2F2008%2F11%2F11%2Fhow-to-create-and-use-the-sd-card-with-the-android-emulator%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>By default the Android emulator does not have an SD card enabled. I was looking for this while I tried to save some images which I viewed on the Android browser within the emulator. The emulator told me that it can not download / save the image because there is no SD card installed. Well, I would also save this on the phone&#8217;s memory &#8230; but it seems the emulator / Android OS does not like that. </p>
<p>However, enabling the SD card is compared to other device simulators quite cumbersome but it works and if you did it once it is pretty easy though. In the end it is a runtime configuration (additional parameter) to start the emulator with an SD card image file. So this needs to be done just once for each runtime / debug configuration in Eclipse. I just made that and it works fine. As I am using Mac OS X &#038; Eclipse the following examples are for this platform. If you are running Linux or Windows you might need to adjust the paths but it should be fairly easy.</p>
<p><big><strong>1. Create an SD card image file</strong></big></p>
<p>In the command line you just enter the following commands:</p>
<p><code>$ cd /Developer/android-sdk-mac_x86-1.0_r1/tools/</p>
<p>$ ./mksdcard 256M /Users/YOUR_USER_NAME/Documents/workspace/android_sdcard</code></p>
<p>You can now check if the file has been created but if there is no error it should be there. You can also adjust the size if you want to have a smaller SD card image or even a bigger one. <img src='http://www.androiddevelopment.org/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
<p><big><strong>2. Tell your Android emulator you want to start with that SD card image file</strong></big></p>
<p>Therefor, go to: &#8220;<strong>Debug</strong> &raquo; <strong>Debug Configurations&#8230;</strong> &raquo; <em>[select or create an Android Application debug configuration]</em> &raquo; <strong>Target</strong>&#8221; and enter at &#8220;<strong>Additional Emulator Command Line Options</strong>&#8221; the following:</p>
<p><code>-sdcard /Users/YOUR_USER_NAME/Documents/workspace/android_sdcard</code></p>
<p>Unfortunately, the Android debugger setup (at least in <a href="http://www.androiddevelopment.org/2008/10/18/javadoc-for-android-sdk-10-r1/">SDK 1.0 R1</a>) does not take eclipse variables like <code>${workspace_loc}</code> and therefor we need the full path in here. Anyway, this might look like:</p>
<p><img src='http://www.androiddevelopment.org/wp-content/uploads/2008/11/use_sd-card_android_emulator.png' alt='How to create and use the SD Card with the Android Simulator' /></p>
<p>That&#8217;s it. Hit &#8220;<strong>Apply</strong>&#8221; and then &#8220;<strong>Debug</strong>&#8221; to start the emulator with your SD card. </p>
<p><em>Note:</em> If your emulator is still running from the last test please close it first.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.androiddevelopment.org/2008/11/11/how-to-create-and-use-the-sd-card-with-the-android-emulator/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

