How to use Bluetooth in Android emulator?

前端 未结 8 1955
醉梦人生
醉梦人生 2020-11-29 03:14

I want to create an application based on bluetooth operation in android.I am using the following code

 BluetoothAdapter adapter=BluetoothAdapter.getDefaultAd         


        
8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-29 03:51

    The emulator doesnt support bluetooth as mentioned in the sdk's docs. You have to check this in real device..

    And you got error Bluetooth binder is null. it means emulator does not have bluetooth capability.

提交回复
热议问题