1
votes

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

Can anyone suggest me which API will work for me ?

1
Why not use the Android shell? - Mapsy
@AlexT. I want to do it through an application, so I need to program one application - N Sharma
@NSharma did you get any solution for communication between android and windoes. - Chetan Joshi

1 Answers

2
votes

I believe that machine which runs on windows OS always act as host. correct ?

Yes. Windows OS will act as USB host.

Can anyone suggest me which API will work for me ?

Your android device will act as accessory. So follow the Accessory APIs.