The statement
don't work correctly after
We get error:
(NullPointerException) java.lang.NullPointerException: Attempt to invoke virtual method 'void com.felhr.usbserial.UsbSerialDevice$WorkerThread.setCallback(com.felhr.usbserial.UsbSerialInterface$UsbReadCallback)' on a null object reference
The solution is to use always:
Do I make any mistake?
B4X:
If Not(USBSerial.isInitialized) Then USBSerial.Initialize("USBSerial", MyDevice, -1)
B4X:
USBSerial.Close
We get error:
(NullPointerException) java.lang.NullPointerException: Attempt to invoke virtual method 'void com.felhr.usbserial.UsbSerialDevice$WorkerThread.setCallback(com.felhr.usbserial.UsbSerialInterface$UsbReadCallback)' on a null object reference
The solution is to use always:
B4X:
USBSerial.Initialize("USBSerial", MyDevice, -1)
Do I make any mistake?