USB communication between Android 2.1 phone and Windows 7 PC

Is there a way to send data from Android 2.1 phone to Windows 7 PC via USB? I found Android USB API but it is not supported by Android 2.1. I can send data from PC, but I don't know how to do it on the mobile side.

+3


source to share


1 answer


You need to read this developer site.

Android supports USB Host mode on API 12 and above (3.1 Honeycomb).

Android supports USB Accessory mode on API 10 and above (2.3.4 Gingerbread).



The difference between host and accessory mode is which device is providing power. I'm not sure which one you would like to use, but if Android is the Host (Host Mode), then it will provide power to the computer (maybe not what you want). In accessory mode, Android will remove power from the computer.

Unfortunately, I don't think you can do this on 2.1 at all.

+1


source







All Articles