I am trying to build a sub-module for an app which requires to identify the nearby bluetooth devices and display the discovered devices to the users. I came to know that in order to use the traditional bluetooth adapter and perform a device discovery, it also needs some location permissions and this permissioning is not supported in higher API levels. So, I switched to companion device pairing API and have set up the code to identify nearby bluetooth devices using this guide. But I am not able to figure out how to start device discovery. I am looking for some help on how to start device discovery using the companion device sharing API
Asked
Active
Viewed 65 times
0
-
https://developer.android.com/guide/topics/connectivity/cross-device-sdk/device-discovery – computercarguy Feb 20 '23 at 17:28