Monday, November 9, 2009

a tutorial on how to use sdcard on android

Alternatively (especially for windows users) one can create the sdcard
image using the described way, loading the sdcard image into the
emulator and push some data onto it using adb.

1) mksdcard 2048M mysdcard
2) emulator -sdcard mysdcard
3) adb push local_file sdcard/remote_file

Files will remain on the image and will be ready to be used next time
you load mysdcard into the emulator.

BTW: Don't make the sdcard image too small. This will crash the
emulator :)
*****************************************************
Android Developer-mksdcard

1 comment:

  1. Here's the command
    >emulator -avd cell
    -sdcard c:\DMarkdevelopment\sdcard\sdcard.img

    ReplyDelete