How to use Bluetooth in Android emulator?

前端 未结 8 1979
醉梦人生
醉梦人生 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 04:09

    Yes, I agree, right now the emulator does not support Bluetooth.

    To compile Android with Bluetooth support enabled, add the following line to BoardConfig.mk.

    BOARD_HAVE_BLUETOOTH := true
    

提交回复
热议问题