Android Question lost keystrokes in edittext

frasc

Member
Licensed User
I have a USB thermometer that sends readings via keystrokes once per second. When run in a text editor, it works fine. When I run it via a textbox that I clear after ENTERPRESSED, I occasionally lose keystrokes because it seems like the textbox can't keep up with the rate of entry. Is there an alternative way to grab keystrokes without using edittext?
 

MarcoRome

Expert
Licensed User
Longtime User
Try ( you can also hiden editText )
B4X:
Sub EditText1_TextChanged (Old As String, New As String)
    Dim str As String
    str = New
    Log(str)
End Sub
 
Upvote 0

frasc

Member
Licensed User
Thank you, but that didn't help.

I did manage to fix it by using Erel's suggestion in this thread and used a label coupled with Activity_KeyPress in place of the edittext box
 
Upvote 0
Top