如何模拟/测试蓝牙聊天?
http://developer.android.com/resources/samples/BluetoothChat/index.html
如您所知,模拟器不支持蓝牙。我的问题是:是否有任何解决方法可以测试示例中的蓝牙聊天?
http://developer.android.com/resources/samples/BluetoothChat/index.html
As you know, the emulator does not have bluetooth support. My question is: is there any workaround to test the bluetooth chat from the sample?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该文档指出模拟器不支持蓝牙。如果您有权访问设备,您确实应该只测试它们。
我从未尝试过这个,但在找到备用设备之前我已经阅读过。因此,如果您真的只能使用模拟器,您可以尝试一下。这不是保证,但值得研究。
https://github.com/heng81/Android-Bluetooth-Simulator
最后我检查了它支持:
服务
The documentation states there is no Bluetooth support for the emulator. And you really should just test with devices if you have access to them.
I have never tried this, but I have read over before just finding a spare device. So if you are really stuck with just the emulator you can give this a shot. It's not a guarantee but it's something to look into.
https://github.com/cheng81/Android-Bluetooth-Simulator
Last I checked it supports:
services
您可能必须使用真实设备进行测试/调试 - 恕我直言,没有办法让蓝牙在模拟器上工作,甚至没有解决方法
You probably have to test/debug with real devices - IMHO there's no way to get bluetooth working on the emulator, not even a workaround