Android Question Serial example crashes on incoming data

Beja

Expert
Licensed User
Longtime User
I could send strings normally, but when I sent a couple of text words it immediately crashed.
No error message.
Galaxy S4, Android 4.1.2

Edit:
Not to mention I have been running this demo without any issue. this is the first time to run it
on GS4
 
Last edited:

KitCarlson

Active Member
Licensed User
Longtime User
I am having a hard time following your post. What is the difference between strings and text words? I think that text words are contained in strings.
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Hi, pls don't stop on that.. they are the same.

edit:
Just noticed the error msg: Connection is broken
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
This is the NewData sub:
B4X:
Sub AStream_NewData (Buffer() As Byte)
    LogMessage("You", BytesToString(Buffer, 0, Buffer.Length, "UTF8"))
End Sub
 
Upvote 0
Top