Full parsing of sdcard creation in Android Simulator

Source: Internet
Author: User

Create sdcard for Android
Two Methods: ADB command in cmd and IDE Interface
1. Run CMD and enter mksdcard-l MyCard 100 m f: \ mysdcard. IMG in the tools directory.
1. Run the mksdcard command to create a new Virtual Disk Under drive F for the simulator. The file name is mysdcard and the suffix can be

For example, MyCard. Tank.
2. The default unit is K. Here, the minimum value of 100 m is greater than 9 m. The maximum value depends on your hard disk. If you want M, I have no objection.
3. The-l command line parameter indicates the volume label of the virtual disk. This parameter does not exist.

Ii. Activate the sdcard ADB command emulator
1. Enter emulator-AVD myadvname-sdcard F: \ mysdcard. IMG in the command line.

3. add content to sdcard cmd
F: \ Android-SDK-Windows \ tools> ADB push F: \ a.mp3/sdcard/a.mp3
You can see
473 kb/s (0 bytes in 2714583.005 S)
You can see your MP3 in music on the simulator interface.
When you start the simulation, you can see that there is a card icon flashing in the upper left corner. It means loading sdcard and starting OK.

Another method is relatively simple:
Steps:

After the file is created, you can see the Virtual File adcard. IMG created with IDE in the corresponding directory, which is the same as that created manually!

OK, write it here! Hope to help you!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.