How to install the APK file in the android Simulator

Source: Internet
Author: User

If you are a beginner in Android, how can you test existing Android applications:

1. First get the android SDK (http://code.google.com/android/download.html) and unzip it to your hard disk somewhere

2. added the system variable sdk_root to point her to the/Tools Folder under the SDK.

3.run the androidsimulator (emulator.exe executable file in Windows). It takes a little longer to start and be patient. The startup screen is shown in .)

4. Copy the APK file to the/Tools Folder.

5. Change the directory to/tools and run $ ADB install your_application.apk from the command line (ABC is an executable file abc.exein the toolsdirectory, and your_application.apk is the application file package you downloaded)

6. Now check the applications in the simulator. The new application should already be in its content, and you should see that the new application is ready and installed.

The error message I encountered in the window, when the ADB running in the window prompts: * deamon still not running *

Error: no device.

In this case, try to stop the ADB server and start using it manually:

1. $ ADB kill-Server

2. $ ADB start-Server

If you want to test whether deamon is running, enter $ ADB Shell

How to uninstall your test application is

$ ADB shell RM your_application.apk

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.