蓝牙低耗能在Android模拟器 [英] Bluetooth Low Energy on Android Emulator

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

问题描述

我研究过蓝牙低耗能

但我没有测试支持BLE装置。

But I don't have supported BLE device for testing.

所以,我要问:

执行Android模拟器支持BLE功能进行测试?

Do the Android emulator supports BLE feature for testing?

我试着用以下code Android模拟器4.3(86)和Android模拟器4.4(ARM)

I tried with the following code on Android Emulator 4.3 (x86) and 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

另一个问题是,

这另一个仿真器或工具支持BLE为Android?

Which another emulator or tool supports BLE for Android?

我真的想在模拟器上测试BLE功能。

I really want to test BLE feature on Emulator.

推荐答案

使用说,模拟器

仿真限制

仿真器的功能限制包括:

The functional limitations of the emulator include:

没有用于拨打或接听实际电话支持。但是,可以模​​拟电话通过模拟器控制台(发出和接收)。

No support for placing or receiving actual phone calls. You can simulate phone calls (placed and received) through the emulator console, however.

没有USB连接的支持

没有用于设备连接的耳机支持

No support for device-attached headphones

没有确定网络连接状态的支持

No support for determining network connected state

没有确定电池电量水平和交流充电状态的支持

No support for determining battery charge level and AC charging state

没有确定SD卡插入支持/退出

No support for determining SD card insert/eject

没有支持蓝牙

谢谢

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

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