简体   繁体   中英

How to connect android device with bluetooth

I am trying to connect with android device with Bluetooth but i couldn't conntect

I have simple code below

BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();

But i got the result adapter=null and Bluetooth NOT supported. Aborting.

How to connect bluetooth through the emulator? Is this possible?

您需要使用物理设备,而不能在模拟器上使用BT。

It's not possible to connect to the bluetooth using the emulator. If your PC has bluetooth feature,you can connect to an Android device using your app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM