Android Question [B4X] [B4XPages] Barcode Reader issue

Sergio Haurat

Active Member
Licensed User
Longtime User
Original post: [B4X] [B4XPages] Barcode Reader

I'm using the example, I just changed the code type to PDF417. This information is printed on identity documents.

The only change in the entire code:
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("MainPage")
    toast.Initialize(Root)
    StopCamera
    B4XPages.SetTitle(Me, "Barcode Example")
    #if B4A
    CreateDetector (Array("PDF417"))

    #Else if B4i
    scanner.Initialize2("scanner", pnlPreview, Array(scanner.TYPE_93, scanner.TYPE_128, scanner.TYPE_QR))
    Wait For Scanner_Ready (Success As Boolean)
    If Success = False Then
        btnStartStop.Enabled = False
        toast.Show("Failed to initialize the scanner.")
    End If
    #end if
End Sub

This example reads it and works


This not




 
Last edited:
Solution
I finally...

Sergio Haurat

Active Member
Licensed User
Longtime User
Upvote 0

Sergio Haurat

Active Member
Licensed User
Longtime User
I finally switched to Zxing, thanks for your help!
 
Upvote 0
Solution
Cookies are required to use this site. You must accept them to continue using the site. Learn more…