How to use Bluetooth in Android emulator?

前端 未结 8 1964
醉梦人生
醉梦人生 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:08

    You can but you will need to run your app on an Android inside a VirtualBox or VMWare image. For more infos, see here (tutorial is for Bluetooth LE, but it works just the same with other Bluetooth versions): Bluetooth Low Energy on Android Emulator

提交回复
热议问题