何时需要 BLUETOOTH_ADMIN android 权限

问题描述 投票:0回答:3

我在这里读到http://developer.android.com/guide/topics/connectivity/bluetooth.html

如果您希望应用程序启动设备发现或操作蓝牙设置,您还必须声明 BLUETOOTH_ADMIN 权限

我认为这样的方法

取消Discovery()

正在发现()

开始发现()

需要 BLUETOOTH_ADMIN 权限。

还有其他方法需要此权限吗?

android bluetooth android-permissions
3个回答
7
投票
public static final String BLUETOOTH_ADMIN 

允许应用程序发现并配对蓝牙设备

常量值:“android.permission.BLUETOOTH_ADMIN”

如您所见,一切都与蓝牙设备的配对和发现有关


6
投票

在代码库中搜索

BLUETOOTH_ADMIN
会发现许多有记录的地方。


0
投票

一个常见的情况是使用

Bluetooth SCO

© www.soinside.com 2019 - 2024. All rights reserved.