How to create and use an SD card with the Android emulator:
Open cmd and go to the tools directory under the Android SDK installation path and enter the following command: Mksdcard 1024M sdcard.img
This command generates an sdcard.img file in the current directory, which is an SD card image file for the Android emulator. 1024M indicates that the SD card has a 1024M size, or 1G capacity. Currently Android supports 8m~128g SD card.
Create an SD card image file, just create a file, not directly in the emulator, to load the SD card in the emulator, the method has the following:
Start the emulator with SDcard in cmd
Go to the Tools directory under the Android SDK installation path and run the following command: Emulator-avd name_avd-sdcard sdcard.img. Where NAME_AVD is the name of an existing emulator, SDCARD.IMG is the first step to create an SD card image file.
In eclipse, when creating a new emulator, specify the path to the SD card image file and add support options for the SD card
Open Eclipse, enter: Window->android SDK and AVD manager such as:
At the time of creation, in the SD card column, select File and set it as the path to the SDcard image file.
Click New in the Hardware column and select SD Card surport.
Click Create Avd,ok.
In eclipse, in Run->run configurations ... In the German Target tab of the menu, enter the startup parameters.
Where E:\test.3gp is the file to be uploaded locally, sdcard/test.3gp is the path uploaded to the SD card.
Note: The ADB push computer path simulator path must use "\" in the computer Path, "/" must be used in the emulator path, and the root path of the emulator is read-only.
CMD, go to the Tools directory under the installation path of the Android SDK, run: adb install f:\***.apk
How to create and use an SD card with an Android emulator