Android Question Zebra TC55 Barcode scan with Intent from Datawedge

Victor Alexander Andara

New Member
Licensed User
Longtime 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

  • ScanTest.zip
    25 KB · Views: 512
  • TC55_Datawedge_config1.JPG
    TC55_Datawedge_config1.JPG
    92.2 KB · Views: 823
  • TC55_Datawedge_config2.JPG
    TC55_Datawedge_config2.JPG
    108.5 KB · Views: 1,005
  • Print_service_start_on_read_barcode.png
    Print_service_start_on_read_barcode.png
    58.9 KB · Views: 728

Victor Alexander Andara

New Member
Licensed User
Longtime 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
 
Upvote 0
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?!
 
Upvote 0
Top