How Eclipse Development Android programs run on your phone

Source: Internet
Author: User

Android development is simple, whether it's on a real-computer debug or a final release to a real machine, as follows:

1. Install USB drive

Mobile phone to be able to connect with the computer, of course, to drive. The effect is that you plug in the phone and the computer shows that the driver is recognized. Official tutorial for driver installation: http://developer.android.com/sdk/win-usb.html

An overview of the official tutorials:
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, cell phone and mobile phone company website's corresponding list is: http://developer.android.com/sdk/oem-usb.html

There are a lot of mobile phone drivers are packaged like a mobile phone manager, such as HTC, you need to install its 91 mobile phone assistant like the PC Sync client, 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 Android phone for USB debug mode

Step: Develop with application, menu-> settings, select "USB Debug"

3. Test through eclipse on the real machine

When it doesn't work, the Android app developed with Eclipse is run, then run the simulator. After installing the USB drive of the mobile phone, or point run, the program will magically run on the real machine, the effect is the same as in the simulator, very simple, and faster than with the simulator block a lot.

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

Right-click->run as->run configurations->target

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

4. Release

The Bin folder under the Android project folder will generate xxxxx.apk after successful compilation, which is the executable Android program, you can install your own project like other Android programs with any phone sync tool. Then find your item icon in the Android app directory and you can run it.

How Eclipse Development Android programs run on your phone

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.