How to run Android programs on mobile phones using eclipse

Source: Internet
Author: User
Tags acer

Http://www.cnblogs.com/plwang1990/archive/2011/07/04/2097757.htm

Android development is very simple, whether it is debugging on a real machine or the final release to a real machine. The process is as follows:

1. Install a USB driver

The mobile phone must be connected to the computer, and of course the server should be installed. The result is that you have inserted your phone. The computer displays that the driver has been identified. Driver Installation official Tutorial: http://developer.android.com/sdk/win-usb.html

Official tutorial Overview:
Different Android phones have different drivers. For Nexus One, and nexus
S, see the official tutorial "downloading the goolge USB driver" section, directly use Android SDK and AVD
Manager installation. For other mobile phones such as HTC, Acer, Motorola,
Sony to go to the corresponding mobile phone company website drive up and down, mobile phone and mobile phone company website corresponding list: http://developer.android.com/sdk/oem-usb.html

There are many mobile phone drivers packaged in the form of a mobile phone manager, such as HTC, you need to install it that wants to 91 mobile assistant similar to the local PC synchronization client, in order to connect to the mobile phone. For example, I developed the mobile phone is HTC, its drive (client) Is HTC Sync: http://www.htc.com/cn/supportdownloadlist.aspx? P_id = 319 & act = SD & cat = all

2. Set the Android mobile phone to USB debugging mode.

Step: Choose menu> Settings> Application> development and select USB debugging]

3. Install the real machine test on Eclipse

When no real machine is used, Android programs developed using eclipse run and run the simulator. After the USB driver is installed on the mobile phone, click run, and the program will run magically on the real machine. The effect is the same as in the simulator, which is very simple, in addition, the speed is much higher than that of simulator blocks.

If it still runs on the simulator, in Eclipse:

Right-click and choose run as> RUN deployments> target.

Remove the Virtual Machine option and run it again. If the previous driver is correctly installed, eclipse will let you choose to run it with that device (either a real machine or your virtual machine is optional ), select the real machine.

4. Release

The BIND file under the androidproject folder will generate xxxxx.apk after compilation is successful, which is an executable Android program. You can use any mobile synchronization tool to install your own project like other android programs. Then you can find your project icon in the app directory of Android to run it.

Android development is very simple, whether it is debugging on a real machine or the final release to a real machine. The process is as follows:

1. Install a USB driver

The mobile phone must be connected to the computer, and of course the server should be installed. The result is that you have inserted your phone. The computer displays that the driver has been identified. Driver Installation official Tutorial: http://developer.android.com/sdk/win-usb.html

Official tutorial Overview:
Different Android phones have different drivers. For Nexus One, and nexus
S, see the official tutorial "downloading the goolge USB driver" section, directly use Android SDK and AVD
Manager installation. For other mobile phones such as HTC, Acer, Motorola,
Sony to go to the corresponding mobile phone company website drive up and down, mobile phone and mobile phone company website corresponding list: http://developer.android.com/sdk/oem-usb.html

There are many mobile phone drivers packaged in the form of a mobile phone manager, such as HTC, you need to install it that wants to 91 mobile assistant similar to the local PC synchronization client, in order to connect to the mobile phone. For example, I developed the mobile phone is HTC, its drive (client) Is HTC Sync: http://www.htc.com/cn/supportdownloadlist.aspx? P_id = 319 & act = SD & cat = all

2. Set the Android mobile phone to USB debugging mode.

Step: Choose menu> Settings> Application> development and select USB debugging]

3. Install the real machine test on Eclipse

When no real machine is used, Android programs developed using eclipse run and run the simulator. After the USB driver is installed on the mobile phone, click run, and the program will run magically on the real machine. The effect is the same as in the simulator, which is very simple, in addition, the speed is much higher than that of simulator blocks.

If it still runs on the simulator, in Eclipse:

Right-click and choose run as> RUN deployments> target.

Remove the Virtual Machine option and run it again. If the previous driver is correctly installed, eclipse will let you choose to run it with that device (either a real machine or your virtual machine is optional ), select the real machine.

4. Release

The BIND file under the androidproject folder will generate xxxxx.apk after compilation is successful, which is an executable Android program. You can use any mobile synchronization tool to install your own project like other android programs. Then you can find your project icon in the app directory of Android to run it.

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.