Android Real-Computer development settings

Source: Internet
Author: User

Android's AVD is extremely slow, no language Ah, the program is better, can not experience the smooth feeling, simply, the real machine test its ...

Here's how:

(1) boot an Android phone (when the pad is OK)

(2) on the phone: set-up application--Development-->USB debugging

(3) Plug in USB, install USB drive (to download the ... )

(4) OK, in the CMD test, the connection is normal, cmd command as follows:

ADB devices Enter

If your device name is displayed, the connection is OK.

(4) Rewrite androidmanifest.xml

<application

android:icon= "@drawable/ic_launcher"

Android:label= "@string/app_name"

android:debuggable= "true" >

Note : The addition is the green of this sentence.

(5) Perform a real-machine debug operation:

Right-click Project-->debug as-->debug configurations-->target tab in Eclipse-Select manual

-click below debug--> Select your device-->ok

Your device will begin to execute your Android app! Very smooth.

Next time you want to debug, you can click Run and select your device, then OK.

(6) Note: Regardless of whether you use eclipse

Any Android software that has an exception running on the real machine can be viewed under the command-line window for specific exceptions.

Input in cmd: adb logc at enter

Note the lines that begin with Causeby, which indicate which line of code is in error

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.