java.lang.SecurityException: Need BLUETOOTH PRIVILEGED permission

前端 未结 5 2281
天涯浪人
天涯浪人 2021-02-19 22:12

Has anyone meet the same problem as the following error message shows when calling bluetoothDeive.createBond() method with android 4.4 api?

j

5条回答
  •  悲&欢浪女
    2021-02-19 22:39

    try this in your manifest

        
        
        
    

    notice the user not uses-permission on the first line. Until I switched that, For some reason I kept getting

    java.lang.SecurityException: Need BLUETOOTH_ADMIN permission

提交回复
热议问题