android - getbluetoothservice() called with no bluetoothmanagercallback -
i getting getbluetoothservice() called no bluetoothmanagercallback
error in android application.
i have no idea causing or bluetooth manager callbacks. can give me idea of causing problem or start looking.
by reading android source code, seems warning cannot about. source code shows if call
bluetoothsocket#connect();
then call
bluetoothadapter.getdefaultadapter().getbluetoothservice(null);
the key here, null parameter passes in above line. due this, there no callback, , bluetoothsocket class throw out warning.
since warning, not think need it.
https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/bluetooth/bluetoothsocket.java line 306 https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/bluetooth/bluetoothadapter.java line 1610
Comments
Post a Comment