java.lang.SecurityException:需要BLUETOOTH PRIVILEGED权限 [英] java.lang.SecurityException: Need BLUETOOTH PRIVILEGED permission

查看:970
本文介绍了java.lang.SecurityException:需要BLUETOOTH PRIVILEGED权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人用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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆