How to use Bluetooth in Android emulator?

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

    I'm currently planning a tool that is capable of emulating Bluetooth over TCP/IP under Linux (will be released freely under GPL).

    This should be the solution when not having a real Bluetooth device (e.g. you want to simulate a connection between two emulated Android-x86 or Linux machines).

    Maybe when compiling for Linux-ARM instead of Linux-x86 it will run in the Emulator, too.

提交回复
热议问题