Android HttpClient sending request to host machine over USB

后端 未结 3 470
猫巷女王i
猫巷女王i 2021-01-18 22:34

I have an Android app running on a phone that\'s connected to a host machine over USB. The phone will always be connected to the machine and I need to go an HTTP request to

相关标签:
3条回答
  • 2021-01-18 23:17

    I ended up abandoning this and basically polling the phone for the new content I wanted from the computer using adb.

    0 讨论(0)
  • 2021-01-18 23:19

    Reverse Tethering! not sure if it works. I never tried it. This thread might help:

    https://android.stackexchange.com/questions/2298/how-to-set-up-reverse-tethering-over-usb

    0 讨论(0)
  • 2021-01-18 23:40

    This Android app + Windows host app should do the trick:

    http://www.codeproject.com/KB/android/UsbPortForwarding.aspx

    0 讨论(0)
提交回复
热议问题