I am developing an app and should allow to read barcodes using the scanner of the equipment (Zebra TC55), I use the example code attached by Garin and modify what indicated by Erel (In the link: https://www.b4x.com/android/forum/t...de-scan-with-intents-broadcastreceiver.56945/ ) but I dont get the barcode readed by the scanner.
I'm using a Zebra TC55
- Adjust the Intent in the Profile0 (Default) of datawedge.
- Adjust the manifest (See attached images)
When reading a barcode the service is activated (Sub Service_Start (StartingIntent As Intent)) but don't get the code readed in the Intent var
With this code the barcode read by the scanner is captured
B4X:
Sub Service_Start (StartingIntent As Intent)
'Log(StartingIntent.ExtrasToString)
Dim i As String
i = StartingIntent.GetExtra("com.symbol.datawedge.data_string")
Log(i)
CallSubDelayed2(Main, "GetResult",i)
End Sub
With this code the barcode read by the scanner is captured
B4X:
Sub Service_Start (StartingIntent As Intent)
'Log(StartingIntent.ExtrasToString)
Dim i As String
i = StartingIntent.GetExtra("com.symbol.datawedge.data_string")
Log(i)
CallSubDelayed2(Main, "GetResult",i)
End Sub