Creating and Managing a SDCard image file

Quickly share your Android Code Snippets here...

Creating and Managing a SDCard image file

Postby ninor » Mon Oct 06, 2008 4:29 pm

Creating and Managing a SDCard image file

In the Command Prompt type the following:
Code: Select all
mksdcard -l test 10M c:androidtest1.img


Now start the Emulator and load the SDcard from the Command Prompt by typing:
Code: Select all
emulator -sdcard c:test1.img


Once the Emulator is started, open another Command Prompt instance and try copying a file to SDcard by typing:
Code: Select all
adb push e:nicepicture.png sdcard/nicepicture.png


Later you can retrieve the same file from SDcard to your system by typing:
Code: Select all
adb pull sdcard/nicepicture.png d:


Verify if the file has been copied in your filesystem (in d:)

SDK Version compatible: 0.9, 1.0 (maybe prior versions too)

Credit: Rahul (Thanks!)
Image AndDev: Your Android Development Community / Tutorials | Here's my Basic ToolKit
User avatar
ninor
Moderator
Moderator
 
Posts: 180
Joined: Thu Aug 14, 2008 6:30 pm
Location: Barcelona, Spain

Top

Return to Code Snippets for Android

Who is online

Users browsing this forum: Yahoo [Bot] and 9 guests