esc_pos_bluetooth
esc_pos_bluetooth copied to clipboard
Example app is throwing getBluetoothService() called with no BluetoothManagerCallback
I am attempting to get the example that comes with this package to run. The app starts and finds my bluetooth thermal printer. When I click the device in the list to print, a timeout error is displayed in the middle of the screen then an error occurs. Here is the error output:
D/BluetoothAdapter(19236): isLeEnabled(): ON
D/BluetoothLeScanner(19236): could not find callback wrapper
W/BluetoothAdapter(19236): getBluetoothService() called with no BluetoothManagerCallback
W/System.err(19236): java.io.IOException: read failed, socket might closed or timeout, read ret: -1
W/System.err(19236): at android.bluetooth.BluetoothSocket.readAll(BluetoothSocket.java:758)
W/System.err(19236): at android.bluetooth.BluetoothSocket.readInt(BluetoothSocket.java:772)
W/System.err(19236): at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:404)
W/System.err(19236): at com.gprinter.io.BluetoothPort.openPort(BluetoothPort.java:58)
W/System.err(19236): at com.tablemi.flutter_bluetooth_basic.DeviceConnFactoryManager.openPort(DeviceConnFactoryManager.java:156)
W/System.err(19236): at com.tablemi.flutter_bluetooth_basic.FlutterBluetoothBasicPlugin$3.run(FlutterBluetoothBasicPlugin.java:233)
W/System.err(19236): at com.tablemi.flutter_bluetooth_basic.ThreadPool$1.run(ThreadPool.java:78)
W/System.err(19236): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/System.err(19236): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/System.err(19236): at java.lang.Thread.run(Thread.java:923)
E/libEGL (19236): call to OpenGL ES API with no current context (logged once per thread)
E/ActivityThread(19236): Activity com.example.blue.MainActivity has leaked IntentReceiver com.tablemi.flutter_bluetooth_basic.FlutterBluetoothBasicPlugin$5$1@c523b77 that was originally registered here. Are you missing a call to unregisterReceiver()?
E/ActivityThread(19236): android.app.IntentReceiverLeaked: Activity com.example.blue.MainActivity has leaked IntentReceiver com.tablemi.flutter_bluetooth_basic.FlutterBluetoothBasicPlugin$5$1@c523b77 that was originally registered here. Are you missing a call to unregisterReceiver()?
E/ActivityThread(19236): at android.app.LoadedApk$ReceiverDispatcher.
Thanks in advance.
I also met the same problem!!!!!!
I have the same problem, could you solve it? Help me please
I have the same problem, could you solve it? Help me please
have you solved this problem
Remove already existing apk from Device and run the app again it should work