> Does anyone have any idea on how to write files to the default
> sdcard.img file or to a new sdcard.img?
>
> I used the mksdcard tool but I'm almost sure that no files were added
> to it.

First, you need to make sure the SD card image is mounted in the emulator.
When you start the emulator, pass the -sdcard <file> option, where <file>
is the path to your image.

Then, to put files from your PC/Mac into the SD card, use the adb push
command -- the sdcard gets mounted as /sdcard in the emulator. So:

adb push this/is/my/file.txt /sdcard

will push file.txt to the SD card.

You can also use adb shell to create a directory structure on the card as
needed.

There are probably Eclipse equivalents to all the above, if you're not
using the console tools.

More information on the emulator can be found at:

http://code.google.com/android/reference/emulator.html

More information on the adb utility can be found at:

http://code.google.com/android/reference/adb.html

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
The Busy Coder's Guide to Android Development -- coming in June 2008!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to