java.lang.SecurityException:需要BLUETOOTH PRIVILEGED权限

编程入门 行业动态 更新时间:2024-10-18 08:29:59
本文介绍了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权限

本文发布于:2023-11-27 04:02:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1636501.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:权限   lang   java   SecurityException   PRIVILEGED

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!