【发布时间】:2013-12-03 10:35:29
【问题描述】:
我研究了Bluetooth Low Energy。
但我没有支持 BLE 设备进行测试。
所以我想问一下:
Android 模拟器是否支持 BLE 功能进行测试?
我在 Android Emulator 4.3 (x86) 和 Android Emulator 4.4 (ARM) 上尝试使用以下代码:
// Use this check to determine whether BLE is supported on the device. Then
// you can selectively disable BLE-related features.
if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {
Toast.makeText(this, R.string.ble_not_supported, Toast.LENGTH_SHORT).show();
finish();
}
而且它总是显示“ble_not_supported”。
另一个问题是
还有哪些模拟器或工具支持 Android BLE?
我真的很想在模拟器上测试 BLE 功能。
【问题讨论】:
-
The official website 说:“模拟器限制:...不支持蓝牙”
-
非常感谢您的评论。但是,“还有哪个模拟器或其他工具支持 BLE for Android?”
-
我不知道。 MecApp 可能支持 BLE,但它不是免费的,而且您可能至少需要一个支持 BLE 的 PC 的蓝牙加密狗才能使用它。
-
好的,谢谢你的信息。
标签: android android-emulator bluetooth emulation bluetooth-lowenergy