This is a very useful trick if you want to debug in android by WiFi.


1. Connect you phone into USB
2. Open cmd
3. Type "adb tcpip 5555"
4. Remove phone from USB
5. Type "adb connect IP" (Where IP is your phone direction)

Note: To see your phone IP direction just go to wifi settings and click above your connected WiFi.

PD: If you don't want to connect over and over you phone by USB all you have to do is assign an static IP (usually in home network it always get the same so probably this is not needed) and create a little CMD script.

From now all you have to do is start Android Studio and execute the script.

The script would be something like....

adb connect "your IP"
PAUSE

Changing "your ip" for the real one (In my case 192.168.1.35)

If you are looking for some icon to your script could be something like the next:


Hope you like it guys!!





http://justcodeitdown.blogspot.kr/2014/01/wifi-debugging-in-android.html

'mobile > Android' 카테고리의 다른 글

c에서 logcat에 log찍기  (0) 2010.07.28
stlport  (0) 2010.07.26
c와 연동  (0) 2010.07.23
자바프로젝트에서 export한 jar를 안드로이드프로젝트에서 불러오기  (0) 2010.07.22
블로그 이미지

란마12

,