Usb data cable communication in Android
android, usb
Solution
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:
C:\android-sdk-windows\tools\adb.exe forward tcp:38300 tcp:38300
Then you can use standard socket programming, both in the Android device and in the PC.
Problem
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?