I am working on one android app where I am trying to establish a communication between android device and machine which runs on windows OS. I want to transfer some bytes from android device to that machine using USB.
I believe that machine which runs on windows OS always act as host. correct ?
I see android has two API's
- https://developer.android.com/guide/topics/connectivity/usb/accessory.html
- https://developer.android.com/guide/topics/connectivity/usb/host.html
Can anyone suggest me which API will work for me ?