有人用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权限
发布评论