Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想以编程方式通过 USB 将文件从我的 pc 的特定端口传输到 android 设备。以下哪种技术最适合这种传输模式:
如果可以通过HttpUrlConnection手段如何实现呢?
HttpUrlConnection
通过 USB Socket 通信将文件从 pc 传输到 android 设备是最好的方法。
您必须执行一些额外的端口转发步骤,在这些步骤上建立 Socket 通信。
看教程https://github.com/user370305/Android-USB-Communication。