How to use android emulator for testing bluetooth application? Ask Question

How to use android emulator for testing bluetooth application? Ask Question

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?

ベストアンサー1

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
  • デバイスに接続されたヘッドフォンはサポートされていません
  • SDカードの挿入/取り出しの判断はサポートされていません
  • WiFi、Bluetooth、NFCはサポートされていません

参照ドキュメンテーション

おすすめ記事