22.1.14

ADB Over network - Android

In these days I'm developing a new cool android application.
I cannot reveal details because it's involved in a contest.. You'll see it next month ;)

Well, like every mobile developer, I have need a device to test it. A device and a cable to connect to pc.
I found and old Htc, without cable. No problem, I use another cable (it's a micro-usb standard luckly).
But the cable doesn't fit well and it's very unconfortable to connect it to pc and, after one minute, to reconnect it because it disconnetted.
So, searching some solutions, I remember an option in Android developer tools that said: "ADB over network". It looked like my solution!
So, this is what to do:
- Connect smartphone to pc using cable;
- Launch adb tcpip 5555;
- Launch adb connect device_ip:5555;
- Disconnect smartphone.
It's great!! It works! And it's fantastic develop without no cable!!

If your device is rooted there're also some apps that permit to skip first connection. I tested Adb Konnect and it fits perfectly.

1 commento: