USB设备连接到Android模拟器? [英] Connect USB device to Android Emulator?

查看:1258
本文介绍了USB设备连接到Android模拟器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们一直在寻找到的Andr​​oid 3.1+和它有能力读/写连接OTG /主机端口USB设备。

We've been looking into Android 3.1+ and its ability to read/write to USB devices connected to the OTG/Host port.

我已经找到了一些code的例子,让我来检测和读/写一个USB HID设备,但在那一刻,我根本就没有一个物理3.1+兼容的设备部署和远程调试上。

I've found some code examples that allow me to detect and read/write to a USB HID device, but at the moment, I simply don't have a physical 3.1+ compatible device to deploy and remotely debug on.

有谁知道我可以将我的HID设备模拟器,通过PC / Eclipse中,因此应用程序可以检测和读/写/从设备?

Does anyone know how I can attach my HID device to the emulator, via the PC/Eclipse so the app can detect and read/write to/from the device?

我试着列出当前连接的USB设备,但它显示了没有,如你毫无疑问的猜测。

I've tried listing the currently connected USB Devices but it shows none, as you'd no doubt guess.

任何想法?

干杯

推荐答案

AFAIK,这是不可能的。安卓模拟器不应该效仿中存在的实际设备很多事情......但是这让我想起了一个<一个我href="http://stackoverflow.com/questions/12114133/debug-app-using-adb-over-bluetooth-for-on-an-android-x86-netbook">attempt要通过蓝牙运行ADB。

AFAIK this isn't possible. Android emulators do not emulate many things that exist in real devices... but this reminds me of an attempt to run ADB over Bluetooth.

这是不是直接正面回答你的问题,但或许它可以帮助你找到一个解决办法的方式,我没有:安装在x86物理上网本(双启动)一个仿真器,使用中提到的链接我的帖子来完成你正在尝试通过WiFi或蓝牙做的事。

This isn't a direct positive answer to your question but perhaps it can help you find a workaround the way I did: Install an "emulator" on a physical x86 netbook (dual-boot) and use the links referred to in my posts to accomplish what you are trying to do via WiFi or Bluetooth.

希望这有助于。

这篇关于USB设备连接到Android模拟器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆