How to connect to an Android entity device

Source: Internet
Author: User
Tags command line

One. Connect the Android device to the computer and install the associated driver.

Two. Set the user's environment variable.

"My Computer"-->> "Properties"-->> "Advanced"-->> "Administrator's user environment variable"-->> "Path"

Click on the "Edit" button, at the end of the "Variable Value" column, enter the absolute path of the platform-tools and tools under our Installation SDK directory, in the middle

The semicolon ";" in the English input method to separate.

For example my own added string is as follows:

;D: Program Filesandroid-sdk-windows__backtools;d:program Filesandroid-sdk-windows__backplatform-tools

Three. The SDK on the computer connects to the Android device:

Press "Win+r", enter cmd, open the Command Line window, and enter: ADB devices

Four. Run our Android program on Android devices:

Start Eclipse and open the Androidtest program we wrote in the previous section, click the "Run"-->> "Run configurations ..." of the interface.

In the pop-up dialog box, click Target on the tab and select Active devices, then click the Apply button in the lower right corner.

If there is nothing wrong with the settings above, then click "Run" on the interface to see that our program is running normally on Android devices.

=================================================================================================

Record the problem: when something is done, there is always a slight deviation, and when I connect the Android device to the computer to install the driver, the load driver fails. Causing the computer to not recognize this Android device.

Solution: "My Computer"--right-click-->> Device Manager, locate the device with a yellow question mark, right-click the device, and choose Properties from the pop-up right-click menu.

Pop-up a dialog box, we choose "Detailed information", see the device this serial number is not, this is our focus.

See my circle of the red box part is to solve the driving load failure of the important breakthrough.

And then open our driver profile, and mine is: Android_winusb.inf

In Softwinner Magic The following to add our device serial number support:

The Red box section above is the content that I add, you can also according to own equipment of some relevant information to add themselves, I believe it should not be difficult.

After saving this file, and then updating the driver, the load from this directory is successful.

The above four steps must step by step, if one does not succeed, the back will not have to do.

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.