Android Development please stay away from the data cable!
The method is simple:
First, first you need to install a terminal emulator tool on your phone, here I recommend androidterm_1,0,48.apk, search the Big App Store will be downloaded to.
In the second step, open the Terminal tool on the phone and enter the command:
su
//获取root权限
setprop service.adb.tcp.port
5555
//设置监听的端口,端口可以自定义,如5554,5555是默认的
stop adbd
//关闭adbd
start adbd
//重新启动adbdThe third step, record the IP address of your phone, what do not know your phone's IP address? Settings--Find the connection wifi--long press open to see Properties, and then remember this IP address fourth step, on the PC side, that is, the Android development environment installed on the PC, open the type command adb connect < Just you recorded the IP address > 5555 If the connection succeeds it will show success ... Of course, the WiFi signal is not as stable as the data line, there will be time out of the situation, in addition to ensure that your phone IP and PCIP need to be in the same network environment.
When you publish your app at Eclipse, the console will have the following information: