Common Use of Android simulators and basic functions

Source: Internet
Author: User
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

Related Article

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.