Android Question BTPrint Error

juanM1

Member
Licensed User
Longtime User
Hello.
I have been using BTPrint for several years, and now with a Galaxy Tab A8 running Android 11, I get the following error:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.iutputStream android.bluetooth.BluetoothSocket.getOutputStream()' on a null object reference

B4X:
Sub BTPrinter_Connected(Connected As Boolean)
     BTConnected = Connected[]

     BTPrinter.Initialize(BTConnection.OutputStream) [B]Here it gives the error.[/B]
     PCL3.Initialize(BTConnection.OutputStream)

     CallSub(BTNotify, BTNotifyRoutine)
End Sub

On an Amazon Prime 10, and it gives the same error.

Thank you and greetings.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…