getbluetoothservice() called with no bluetoothmanagercallback

前端 未结 6 1481
遇见更好的自我
遇见更好的自我 2020-12-03 16:30

I am getting getBluetoothService() called with no BluetoothManagerCallback as an error frequently in my Android application.

I have no idea what is caus

6条回答
  •  星月不相逢
    2020-12-03 17:14

    This also comes up if the BluetoothServerSocket isn't currently accepting [bluetoothServerSocket.accept()] with the same UUID you are trying to connect.

    If you are sure you are accepting with the server socket, double check that you haven't provided a too short timeout (I had previously set it to 200 to check something, whoops).

提交回复
热议问题