在Android模拟器中启用USB [英] enabling usb in android emulator

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

问题描述

朋友,
我有一个用于传输数据的USB设备.该设备在Windows OS中完美运行.我要在Android 2.1中使用该设备.该设备充当人机界面设备.
我正在使用Eclipse和Android Emulator进行编程.看来,该仿真器仅适用于UI,不适用于外部硬件.
您能建议我如何使Android模拟器检测USB设备吗?

感谢您的关注.
关于

Hi Friends,
I have a usb device for transmitting data. the device works perfect in windows OS. I am to use the device in Android 2.1. the Device acts as Human Interface Device.
I am using Eclipse and Android Emulator for programming. It seems the emulator work only for UI and not for external hardware.
Can you suggest how can I make Android emulator detect the usb device.

Thank you for your kind interest.
Regards

推荐答案

不幸的是,仿真器不支持USB连接...

根据仿真器文档,其局限性是:

不支持拨打或接听实际电话,但是您可以通过模拟器控制台模拟(拨打和接听的)电话.
不支持USB连接
不支持相机/视频捕获(输入).
不支持连接设备的耳机
不支持确定连接状态
不支持确定电池电量和交流充电状态
不支持确定SD卡插入/弹出
不支持蓝牙
Unfortunately the emulator does not support USB connections...

According to emulator documentation, its limitations are:

No support for placing or receiving actual phone calls, but you can simulate phone calls (placed and received) through the emulator console.
No support for USB connections
No support for camera/video capture (input).
No support for device-attached headphones
No support for determining connected state
No support for determining battery charge level and AC charging state
No support for determining SD card insert/eject
No support for Bluetooth


我认为您可以尝试安装Android x86( http://www .box上的.android-x86.org/)版本.因为此版本在eeePC上使用,所以可能应该支持USB端口.
I think you can try to install the Android x86 (http://www.android-x86.org/) version on virtualbox. Because this version is used on eeePC, USB port should be probably supported.


我正在尝试更改Android仿真器以启用USB连接.
现在,我可以在主机PC(QEMU)上看到SDCARD.

您可以在以下站点中查看USB连接的图像.
http://www.youtube.com/watch?v=_ODy_Mm8KWw

在不久的将来,我想将源代码发布为开源.
待会见.
I''m trying to change the Android emulator to enable the USB connection.
Now, I could see the SDCARD on the Host PC(QEMU).

You can see the image of USB connection in the following site.
http://www.youtube.com/watch?v=_ODy_Mm8KWw

In the near future, I want to publish the source code as an open source.
See you soon.


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

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