Emulating a SD-Card
What you will learn: You will learn how to create an SDCard Image for your emulator.
Difficulty: 1.5 of 5

Part I: Creating an SDCard Image:
[flash width=686 height=475]http://www.anddev.org/images/tut/basic/create_sd_card/screencast.swf[/flash]
The parameters of the command:
mksdcard [-l label] <size>[K|M] <file>
explained:
- "-l <label>":
A volume label for the disk image to create.- "<size>"
An integer that specifies the size (in bytes) of disk image to create. You can also specify size in kilobytes or megabytes, by appending a "K" or "M" to <size>. For example, 1048576K, 1024M.- "<file>"
The path/filename of the disk image to create.
Part II:
Once you have created the sdcard image file, you can load it in the emulator at startup using the emulator's -sdcard option.
- Code: Select all
// Format:
-sdcard <file>
// Example
-sdcard C:UsersplusminusAppDataLocalAndroidsdcard.img
In Eclipse you have to change the
Run-Configuration like in the following picture:
Having done that, we can see the SDCard even with our Android-File-Browser:

Finally pushing files to the SD-Card using the adb.exe on the commandLine:
adb push <source path> /sdcard/<filename>
Regards,
plusminus






) for you having used the following command:


