1. Create an SD card image file
1) Create an SD card image file
Mksdcard 1024 m e: \ mysoft \ Android \ SD \ sdcard. img
Run the command ADB shell and enter ls to view the file list. This command will be explained in the following sections.
2) Start the simulator and view the image file (this step requires another Terminal)
Emulator-sdcard E: \ mysoft \ Android \ SD \ sdcard. img
3) copy a file to sdcard and execute the following command on the terminal in step 1.
ADB push D: \ a.mp3/sdcard
Note that "/sdcard" is used as the root directory of the sdcard folder.
Run the preceding command to view the file. You also need to scan the media file in Dev tools in the simulator. For MP3 files, you canProgramIn the left-side navigation pane.
4) How do I browse sdcard files? It seems that the simulator does not provide the corresponding program to view the file list. But we can see it in the eclpise plug-in.
In the run setting form of the andorid project, there is a target tab, which contains the options of additonal emulator command line options. Enter:
-Sdcard E: \ mysoft \ Android \ SD \ sdcard. IMG and then start the project. There is a file explorer in "ddms" to see everything in it.
You can also upload, download, and delete files here.
Ii. Basic commands