How to find the devices in the range by using bluetooth?

后端 未结 3 1695
广开言路
广开言路 2021-02-03 14:17

I am new to android.I want to develop an application to find the devices in the range by using Bluetooth programmatically.If any one has idea please give some sample code to me.

3条回答
  •  南方客
    南方客 (楼主)
    2021-02-03 15:01

    you might want to use method startDiscovery() .

    I dont have a sample code right now but you might want to have a look at : http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html#startDiscovery%28%29

    Hope it helps!

提交回复
热议问题