Android Question Zebra TC55 Barcode scan with Intent from Datawedge

Victor Alexander Andara

New Member
Licensed User
Hello!!

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

Please can you help me.

Attached modified source code.
 

Attachments

Victor Alexander Andara

New Member
Licensed User
Hi Erel!!

Thank you very much

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
 
Hi Erel!!

Thank you very much

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
Hallo Viktor, can you pls attach a sample Project with that Code? Thank you in advance?!
 
Top