Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

when is BLUETOOTH_ADMIN android permission required

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?

like image 854
Coding man Avatar asked Jan 20 '14 06:01

Coding man


2 Answers

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

like image 98
laalto Avatar answered Oct 19 '22 05:10

laalto


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

like image 32
Fraggles Avatar answered Oct 19 '22 05:10

Fraggles