How to use Bluetooth in Android emulator?

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

    You can install the image from http://www.android-x86.org/ into a virtual machine (e.g. VMWare), find out it's IP address, connect manually using

    adb connect 
    

    And then launch your project from Eclipse by setting a "Manual" deployment target in your Debug/Run configuration. Bluetooth works in this Virtual Machine at least on my Macbook and it's reported to work with a couple of other bluetooth chipsets.

提交回复
热议问题