How to connect to an Android physical device

Source: Internet
Author: User

1. Connect the Android device to your computer and install the relevant driver.

2. Set the user's environment variables.

[My computer] --> [properties] --> [advanced] --> [Administrator user environment variables] --> [Path]

Click the edit button. At the end of the variable value column, enter the absolute path of platform-tools and tools under the installation SDK directory.

Separate them by semicolons.

For example, the strings added by myself are as follows:

; D: Program Filesandroid-sdk-windows _ BACKtools; D: Program Filesandroid-sdk-windows _ BACKplatform-tools

3. Connect the SDK on the computer to the Android device:

Press Win + R, Enter cmd, open the command line window, and enter adb devices

4. Run our Android program on the Android device:

Start Eclipse, open the AndroidTest program we wrote in the previous section, and click [Run] --> [Run Configurations...] on the interface ...]

In the displayed dialog box, click Target under the tab, select Active devices, and click Apply in the lower right corner.

If there are no errors in the above settings, click "Run" on the interface to see that our program runs normally on the Android device.

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

Record problems: when something is done, there is always a slight deviation. When I connect the Android device to the computer to install the driver, the driver fails to be loaded. The Android device cannot be recognized by the computer.

Solution: [my computer] -- Right-click --> [Device Manager], find the device with a yellow question mark, and right-click the device, right-click the menu and choose Properties ],

In the pop-up dialog box, select details to see if the serial number of the device is missing. This is our focus.

The red box in my circle is an important breakthrough to solve the driver loading failure.

Then open the configuration file of our driver. Mine is android_winusb.inf.

In; Softwinner Magic, add support for the serial number of our device:

The red box in the text box is the content I added. You can also add the content by yourself based on some information about your device. I believe it is not difficult.

After saving the file, update the driver and load it from this directory.

The above four steps must be performed step by step. If one fails, the subsequent steps will not be performed.

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.