Eclipse develops how Android apps run on mobile phones

Source: Internet
Author: User

Android development is easy to debug on a real machine or eventually to a real machine, as follows:

1. Install USB drive

Mobile phone to be able to connect with the computer, of course, to Ann Drive. The effect is that you insert the phone, the computer display driver has been identified.

Official Tutorials Overview:

Different Android phones have different drivers for Nexus one, and Nexus S, see the official tutorial "downloading the Goolge USB Driver" section, installed directly with the Android SDK and AVD Manager. For other mobile phones such as Htc,acer,motorola, Sony and so on to the corresponding mobile phone company's website up and down drive.

There are a lot of mobile phone drivers are packaged in the form of a mobile phone manager, such as HTC, you need to install the 91 mobile phone assistant like the PC synchronization client, in order to connect with the phone. For example, I developed a mobile phone is HTC, its driver (client) is HTC Sync:http://www.htc.com/cn/supportdownloadlist.aspx?p_id=319&act=sd&cat=all

2, set up the Android phone for USB debugging mode

Step: Menu-> Setup-> Application-> development, select "USB Debugging"

3, through Eclipse on the true machine test

Using Eclipse to develop Android programs is a bit of run, and then run the simulator. Install a mobile phone USB drive, or point run, the program will magically run on the real machine, the effect of the same as in the simulator, very simple, and faster than with the simulator block a lot.

If there is no effect or runs on the emulator, in Eclipse:

Right-->run As->run Configurations->target

Check out the virtual machine option, and then run it, and if the previous driver is installed correctly, eclipse will let you choose to run with that device (there is a real machine and your virtual machine to choose from), then select the real machine.

4, Release

The Bin folder under the Android Engineering folder generates XXXXX.APK after the build is successful, and is an executable Android program that you can install on your own with any phone sync tool like installing other Android programs. Then you can run it by finding your project icon in the Android app directory.

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.