I studied about Bluetooth Low Energy.
But I don't have supported BLE device for testing.
Therefore, I want to ask :
Do the Android emulator supports BLE feature for testing?
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();
}
And it always show "ble_not_supported".
Another question is
Which another emulator or tool supports BLE for Android?
I really want to test BLE feature on Emulator.
It seems you can, using Android inside a VirtualBox and using a PC dongle supporting Bluetooth LE (costs about 18$ on Amazon). Here's the tutorial by Chris Larson (copied here to keep it online):
Here are a few other links describing more or less the same method, and a few other tools that can be of interest to you:
And if you want this issue to be solved by Google, you can star this thread to make it more visible (with enough votes, Google will tackle it in a few years, as they did with audio issues...):
https://code.google.com/p/android/issues/detail?id=56608
Using the Emulator said that
Thanks,