androidandroid-emulatorbluetoothemulationbluetooth-lowenergy

Bluetooth Low Energy on Android Emulator


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.


Solution

  • Using the Emulator said that

    Emulator Limitations

    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.

    No support for USB connections

    No support for device-attached headphones

    No support for determining network 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

    Thanks,