简体   繁体   English

我可以使用USB直接连接两个Android设备吗?

[英]Can I connect two Android devices directly using USB?

I need to write a program that will alow an Android device (running version 2.2) to send data (a simple String) to another device (also running version 2.2) via a USB connection. 我需要编写一个程序,使Android设备(运行2.2版)可以通过USB连接将数据(简单的String)发送到另一台设备(也运行2.2版)。 Are there any libraries to do that? 有没有图书馆可以做到这一点?

I believe those devices would have to support USB host mode in hardware. 我相信这些设备必须在硬件上支持USB主机模式。 And then one of them would need to be out in storage media mode, then you'd use standard filesystem access functions. 然后其中之一需要在存储介质模式下使用,然后使用标准文件系统访问功能。 But the hardware side needs to be dealt with first. 但是硬件方面需要首先处理。 I would check out special USB host cables to see what can be done. 我将检查专用的USB主机电缆,以了解可以做什么。 Not all Android devices can be put into USB host mode. 并非所有的Android设备都可以进入USB主机模式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM