Hi All,
I've built an app that is to capture a scanned barcode using the Honeywell hand held model 1900.
The device is plugged into the tablet and while the EditText field is focused, the user triggers the scanner and the barcode is captured into the EditText field. No problem so far.
With CODE128, it is terminated with a CRLF character which I'm having trouble identifying.
I've tried using the Activity_KeyPress, but haven't had success capturing the complete barcode value HERE, in Post#6 from Erel.
I'm now trying the txtBarCode_TextChanged event.
With both of these event types, I'm unable to capture the CRLF.
I've also tried the various ZXing libraries (offered on this forum) using the camera, but the camera captures the same barcode over and over, which is no good.
I need to capture and identify the CRLF terminating string to know when to write the barcode to a local SQLite table.
So how is this done?
Thanx,
Mark S.
I've built an app that is to capture a scanned barcode using the Honeywell hand held model 1900.
The device is plugged into the tablet and while the EditText field is focused, the user triggers the scanner and the barcode is captured into the EditText field. No problem so far.
With CODE128, it is terminated with a CRLF character which I'm having trouble identifying.
I've tried using the Activity_KeyPress, but haven't had success capturing the complete barcode value HERE, in Post#6 from Erel.
I'm now trying the txtBarCode_TextChanged event.
With both of these event types, I'm unable to capture the CRLF.
B4X:
Sub txtBarcode_TextChanged (Old As String, New As String)
If New.Contains(Chr(10)) Then
Log("Has chr(10) in barcode")
Else If New.Contains(Chr(13)) Then
Log("Has chr(13) in barcode")
Else If New.Contains(CRLF) Then
Log("Has CRLF")
Else if New = "10" Then
Log("Has 10")
Else If New = "13" Then
Log("Has 13")
Else If New = CRLF Then
Log("Pure CRLF")
Else
Log("Has no CRLF in barcode")
End If
End Sub
I've also tried the various ZXing libraries (offered on this forum) using the camera, but the camera captures the same barcode over and over, which is no good.
I need to capture and identify the CRLF terminating string to know when to write the barcode to a local SQLite table.
So how is this done?
Thanx,
Mark S.