Вопрос

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?

Это было полезно?

Решение

Searching the codebase for BLUETOOTH_ADMIN reveals many places where it is documented.

Другие советы

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top