Use of Android Simulators

Source: Internet
Author: User

Use of Android Simulators


I. 90-degree rotation Simulator

Shortcut Key:CTRL + F11 or Ctrl + F12


2. Install APK in the simulator

Run the simulator first. Otherwise, the following error occurs:Error:
Device not found
After the simulator is started, the terminal runs platform-tools/ADB:

ADB install xxx.apk (XXX is the APK path)


If the error message "failure [install_failed_already_exists]" is prompted during installation, it indicates that the installation has been completed. You need to uninstall it first. The uninstallation is simple and you can uninstall it in the simulator:Settings --> applications --> Manage applications

In addition, if you run: ADB shell, it will enter the root directory of the simulator as root, which is the same as the Linux Command Line Method ~~

Paste a picture, Hoho ~~ (The Linux simulator still has a point card, but it is much smoother than Windows ~~)





3. Use the SD card in the simulator

To the tools directory,

./Mksdcard-l sdcard 512 M sdcard. img

In this way, a m SD card is created. In the SDK graphical interface, click "edit" and select the previously created SDK card sdcard from SD cards. IMG can be used in the simulator: settings --> storage.


4. transfer files to the simulator

CD platform-Tools

. /ADB push XXX sdcard/# XXX is the file to be added to the SD card (there must be a final "/"; otherwise, the system will prompt: failed to copy 'xxx' to 'sdcard ': is a directory)

 
Note: If the read-onlyfilesystem error is returned, run ADB.
The remount command.

 
How can I view the file I just added?

./ADB Shell# Enter the simulator Terminal

CD sdcard

Ls# We can see that our file is pressed!

You can also do this:

./ADB Shell# Enter the simulator Terminal

Mkdri sdcard/MP3

Exit

./ADB push XXX sdcard/MP3


First, push a music or image file to the SD card of the simulator;

Music files:

Simulator --> main menu --> Dev
Tools --> media plugin. After finishing, you can find it in the main menu --> music. You can play the video directly in the simulator ~~

Image files:

Simulator --> main menu --> Dev
Tools --> media repository. After finishing, you can find it in the main menu --> gallery. You can directly open it in the simulator ~~



Done!


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.