我正在开发一个 android 应用程序,我正在尝试在 android 设备和在 windows 操作系统上运行的机器之间建立通信。我想使用 USB 将一些字节从 android 设备传输到该机器。
我相信在 Windows 操作系统上运行的机器总是充当主机。正确的 ?
我看到android有两个API
- https://developer.android.com/guide/topics/connectivity/usb/accessory.html
- https://developer.android.com/guide/topics/connectivity/usb/host.html
谁能建议我哪个 API 适合我?