I am clearly doing some thing wrong..
I have tried all 3 Barcode libraries and classes and I have the same issue with all of them..
I tie the Scanner to a button called scan now
it crashes the app with
If I put a breakpoint here and step through line by line.. I works fine....
I have tried all 3 Barcode libraries and classes and I have the same issue with all of them..
I tie the Scanner to a button called scan now
it crashes the app with
android.content.res.Resources$NotFoundException: Resource ID #0x0
If I put a breakpoint here and step through line by line.. I works fine....
B4X:
Private zx1 As ZxingBarcodeScanner
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout")
zx1.LaserColor = Colors.Yellow
zx1.MaskColor = Colors.ARGB(70, 100, 10, 100)
zx1.BorderColor = Colors.Magenta
zx1.BorderStrokeWidth = 1
zx1.BorderLineLength = 10
zx1.Visible = True
End Sub
B4X:
Sub btnScanBarcode_Click
zx1.Visible = True
zx1.startScanner
End Sub
Last edited: