android

How to use android emulator for testing bluetooth application?


I am developing an application which will send a request to a bluetooth printer for printing. The code is working fine for real devices, but I want to run it on the Android Emulator. How can I use the emulator for bluetooth testing?


Solution

  • You can't. The emulator does not support Bluetooth, as mentioned in the SDK's docs and several other places. Android emulator does not have bluetooth capabilities".

    You can only use real devices.

    Emulator Limitations

    The functional limitations of the emulator include:

    • No support for placing or receiving actual phone calls. However, You can simulate phone calls (placed and received) through the emulator console
    • No support for USB
    • No support for device-attached headphones
    • No support for determining SD card insert/eject
    • No support for WiFi, Bluetooth, NFC

    Refer to the documentation