-
Notifications
You must be signed in to change notification settings - Fork 570
AcceptThread crash #21
Comments
Thanks! |
in class app.akexorcist.bluetotohspp.library.BluetoothSPP line 371 when arr_name.size()==0 a arr ArrayIndexOutOfBoundsException occured |
I noticed this same problem in case if I will switch off the BT in my phone during connection. |
I set the Listener, but received nothing. Follow is the codes: |
i have the same problem as r00kie0, setting the bluetooth data listener, but i can not receive |
onDataReceived(byte[] data, String message) |
The function of onDataReceived not work, plz give solution. tks~ |
Hello Guys, To receive messages correctly the text should have a 0x0A and 0x0D at the end. Like you can see in this code:
|
What about that "AcceptThread" null reference mentioned in the very first message? |
jtoros13 did you find a solution? I'm getting the same problem and I don't have access to the phone in question. |
Nope, no "out of the box" solution found. Hope this helps |
@akexorcist Sorry for my english, I'm from Argentina. As mentioned in some comments, I need to know if it is going to solve the "AcceptThread" bug, because I have a project to finish and one of the things that slow me down is this bug. |
sorry i got this problem how to slove |
AcceptThread will crash if listenUsingRfcommWithServiceRecord method throws exception.
In this case mmServerSocket will be null,
and crash will be at AcceptThread.run line socket = mmServerSocket.accept();
Also need to check for null in AcceptThread .cancel method or catch any exception.
The text was updated successfully, but these errors were encountered: