java.lang.SecurityException: Need BLUETOOTH PRIVILEGED permission

前端 未结 5 2296
天涯浪人
天涯浪人 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:47

    Got the exact error message.

    Took me an hour to realize that the bluetooth on the phone is not enabled. After turning it on, it works as expected.

提交回复
热议问题