When developing and testing Android applications, due to the limitations of the simulator, we often feel that the simulator is slow or cannot meet certain functions, how can I deploy the Android Application on a real mobile phone to test it? In fact, deploying the Android Application on a real mobile phone is very simple. Taking the Motorola xt701 mobile phone I tested and the Android operating system version 2.1update1 as an example, the detailed steps are as follows:
1. First download the xt701 driver on the Motorola official website and install it on the computer.
2. Connect the mobile phone to the computer using a data cable
3. Set settings on your phone: settings ---> Applications ----> development -----> USB debugging.
4. Open Window ----> show view ----> other ----> devices in eclipse. In this window, you will see your mobile phone device information.
5. Make sure that the running environment of your application is consistent with the version of your mobile phone system (if not, modify
<Uses-SDK Android: minsdkversion = "7"/> version number, right-click the project, choose Properties> Android> Target name, and click OK)
6. Right-click the project and choose run as ---> Android Application
After setting the above steps, you can deploy your application on a real mobile phone. The steps may be slightly different due to different phone models.