Deploy the program to the Android mobile phone

Source: Internet
Author: User

The first Google summer College Students' blog sharing competition-2010 andriod

 

Although the SDK and development environment have been installed and the android Virtual Device (AVD) has been established, it is still necessary to test on the mobile phone in many cases. Android provides us with such a mechanism.

I used a real machine test for Moto x702 (milestone). First, connect the mobile phone to the computer with USB, then select "USB management", and select the first item "portal and tool ", in this case, a virtual disc appears on the computer.ProgramDuring the installation process, the driver and a program connected to the mobile phone are automatically installed. Through this program, the phone portal program on the mobile phone is automatically opened and the USB method is automatically selected to connect to the computer, this program can be used to read short messages, address books, and many other resources from mobile phones. Check the program name. The program is proprietary to Motorola's mobile phones. Other brands of mobile phones are unknown for the moment.

It's a little far away. Continue to the original topic. After installing the program and driver that comes with Motorola, the mobile phone cannot be directly used as a debugging tool and must be configured. Press "menu" on your phone and run "Settings"> "application"> "development"> "USB debugging" To Enable USB debugging. Then run your own program. After you select Run as -- Android Application, the program will be automatically deployed to your mobile phone and the program will be automatically opened. If you want to manually select a debugging device, select Run as -- run deployments, and select your project name under the left-side Android Application. Under the tag "target" on the right, select "Manual" under "deployment target selection mode", and then run the program again. The device chooser window appears, asking the developer to select the device to be deployed. You can view the running log on the console.

When you install the SDK, selecting "USB driver" will automatically download the driver for USB debugging. In the usb_driver folder under the SDK, normally, the driver should be installed after the mobile phone is connected to the computer with USB, but this does not happen in milestone, I think Motorola has already added the driver to the virtualized Optical Drive. It is only a guess for the time being and has not been verified.

After the previous installation, You can happily debug your developed program on milestone.

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.