I use google ADT on my windows PC and tablet (Sumsung Tab 2 10.1) or mobile phone (HTC vivid) to test my applications. Earler I used a usb cable to connect Eclipce to Android in a debug mode, but after some time I saw that this is not comfortable, would be better use a wifi instead of a cable to connect.
So now in Android I have installed application called “Adb wireless”
https://play.google.com/store/apps/details?id=com.eboy.adbwireless
Also in my PC I created a small CMD script to connect android.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
@echo off color a SET andip=192.168.0.100:5555 cd "C:\adt-bundle-windows-x86_64-20130917\sdk\platform-tools" :start1 echo ***********Eclipse-ADB Tools************* echo 1. Connect to %andip% echo 2. Disconnect echo 3. Set another IP echo 4. Clear cmd echo 5. Exit set /p OPT=Choose option: if %OPT%==1 ( adb connect %andip% goto :start1 ) else if %OPT%==2 ( adb disconnect goto :start1 ) else if %OPT%==3 ( set /p andip=IP: goto :start1 ) else if %OPT%==4 ( cls goto :start1 ) else if %OPT%==5 ( exit ) else ( echo Unknown option! goto :start1 ) |
Change these lines with your specific information and save as *.CMD or *.BAT file
SET andip=192.168.0.100:5555
cd “C:\adt-bundle-windows-x86_64-20130917\sdk\platform-tools”
192.168.0.100:5555 You must set IP, which was given by Adb wireless application
C:\adt-bundle-windows-x86_64-20130917\sdk\platform-tools – change this part “C:\adt-bundle-windows-x86_64-20130917” by path, where you installed ADT.