Searching the codebase for BLUETOOTH_ADMIN
reveals many places where it is documented.
when is BLUETOOTH_ADMIN android permission required
-
30-09-2022 - |
Вопрос
I read here http://developer.android.com/guide/topics/connectivity/bluetooth.html that :
If you want your app to initiate device discovery or manipulate Bluetooth settings, you must also declare the BLUETOOTH_ADMIN permission
What I think is that methods like
cancelDiscovery()
isDiscovering()
startDiscovery()
requires the BLUETOOTH_ADMIN permission.
Are there any other methods that requires this permission?
Решение
Другие советы
public static final String BLUETOOTH_ADMIN
Allows applications to discover and pair bluetooth devices
Constant Value: "android.permission.BLUETOOTH_ADMIN"
As you can see, everything that has to do with pairing and discovering of bluetooth devices
Не связан с StackOverflow