How to use android emulator for testing bluetooth application?

后端 未结 2 984
日久生厌
日久生厌 2020-12-02 10:10

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

2条回答
  •  醉话见心
    2020-12-02 10:52

    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

提交回复
热议问题