Android Question Zebra TC55 Barcode scan with Intent from Datawedge

Discussion in 'Android Questions' started by Victor Alexander Andara, Jun 1, 2017.

  1. Victor Alexander Andara

    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.
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    What is the output of:
    Code:
    Log(StartingIntent)
    Log(StartingIntent.ExtrasToString)
     
  3. Victor Alexander Andara

    Victor Alexander Andara New Member Licensed User

    Hi Erel!!

    Thank you very much

    With this code the barcode read by the scanner is captured

    Code:
    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
     
    Erel likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice