I want to communicate with my android application from my computer with the usb data cable. What listener should I implement?
I think a TCP connection will suit my needs but connecting with it over the adb driver seems akward.
How can I communicate from windows to android using a data cable?
I found a nice post about this subject here. You basically need adb in order to do the port forwarding between the Android device and the PC. As an example:
Then you can use standard socket programming, both in the Android device and in the PC.