java.lang.SecurityException:需要BLUETOOTH PRIVILEGED权限 [英] java.lang.SecurityException: Need BLUETOOTH PRIVILEGED permission
问题描述
有人用Android 4.4 api调用bluetoothDeive.createBond()
方法时遇到与以下错误消息所示的问题相同的问题吗?
Has anyone meet the same problem as the following error message shows when calling bluetoothDeive.createBond()
method with android 4.4 api?
java.lang.SecurityException:需要BLUETOOTH PRIVILEGEDED权限
java.lang.SecurityException: Need BLUETOOTH PRIVILEGED permission
注意:BLUETOOTH_ADMIN
权限已经包含在AndroidManifest
文件中.
Note: BLUETOOTH_ADMIN
permission is already included in AndroidManifest
file.
推荐答案
如果您的应用程序是第三方应用程序(非系统应用程序),则不能使用此权限.要了解更多信息,请参阅Android API: BLUETOOTH_PRIVILEGED
You can't use this permission if your app is a third party app (non-system app). To learn more, see Android API: BLUETOOTH_PRIVILEGED
这篇关于java.lang.SecurityException:需要BLUETOOTH PRIVILEGED权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!