Saturday, February 23, 2008

Emulating SD card

Use mksdcard for creating a FAT32 image of a SD card. For example,

mksdcard 1024M sd_card

To make sure the image is used with the emulator, launch the emulator with -sdcard option.

On Eclipse, this can be done by going to “Run > Open Run Dialog”, in the “Target” tab,

add the option in the “Additional Emulator Command Line Options” :



For adding/removing files from the sd card, you can use the DDMS view in Eclipse or use the command ,

adb push /sdcard/

No comments: