bluetoothlescanner

Bluetooth scanner not discovering devices

此生再无相见时 提交于 2021-01-07 01:21:03
问题 I am creating a Bluetooth scanner app and trying to find the available devices to pair. I have a Bluetooth headset which I am trying to find running the application on android 10. Permissions are set in manifest <uses-permission android:name="android.permission.BLUETOOTH"/> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> App contains a simple button on whose click I start discovery for bluetooth

Bluetooth scanner not discovering devices

孤者浪人 提交于 2021-01-07 01:15:53
问题 I am creating a Bluetooth scanner app and trying to find the available devices to pair. I have a Bluetooth headset which I am trying to find running the application on android 10. Permissions are set in manifest <uses-permission android:name="android.permission.BLUETOOTH"/> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> App contains a simple button on whose click I start discovery for bluetooth

How can i scanning the mobile phone's bluetooth by using bluetoothLescanner?

醉酒当歌 提交于 2020-01-25 07:25:14
问题 I asked this question a few hours ago, but I still can't solve it. I'm trying to catch the BLE signal, and get the rssi vlue by using "BluetoothLeScanner" to measure the distance between two phone. But, my program detects every BLE_signal except the Bluetooth signal on my phone. The following is what I printed out with Log.e as I ran the program. ''' 2019-12-01 00:21:16.319 22089-22089/com.example.bluetooth E/get_RSSI: name: null, addr: 33:DC:55:32:73:96, rssi: -88, distance: 8