Real-machine debugging is indispensable in Android development. It is inconvenient and unstable to plug and unplug data lines. In fact, WIFI can be used to connect to android phones. You can also read another article about debugging Android real machines.
1. Of course, you must first enable WIFI, and the mobile phone must be in the same LAN as the computer.
2. Install AdbWireless on your mobile phone (you need to search for it on Google Play). Note that the mobile phone needs to be root.
3. After the installation is complete, start AdbWireless on the mobile phone and press the big button in the center of the screen to activate the wireless connection:
4. Follow the on-screen prompts to find adb (Android Debug Bridge) in the Android SDK \ platform-tools directory on your computer. Run the following command on the command line to complete the connection:
Adb connect xx. xx
5. Now go back to Eclipse to start debugging and find that the connection to the mobile phone has been successfully established: