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