Today at 1:40 PM
i came across your post on qr code scanner but when i try to implement the code in my project and execute it won't show anything rather it will log message "*** gniytvb: B4XPage_Appear [gniytvb]" and "Result has arrived" and "** Activity (main) Pause event (activity is not paused). **" and "*** gniytvb: B4XPage_Disappear [gniytvb]" and "onActivityResult: wi is null" and "** Activity (main) Resume **"
this is the post https://www.b4x.com/android/forum/t...s-and-other-1d-2d-barcodes.49084/page-7#posts
this is my code
i came across your post on qr code scanner but when i try to implement the code in my project and execute it won't show anything rather it will log message "*** gniytvb: B4XPage_Appear [gniytvb]" and "Result has arrived" and "** Activity (main) Pause event (activity is not paused). **" and "*** gniytvb: B4XPage_Disappear [gniytvb]" and "onActivityResult: wi is null" and "** Activity (main) Resume **"
this is the post https://www.b4x.com/android/forum/t...s-and-other-1d-2d-barcodes.49084/page-7#posts
this is my code
B4X:
Sub Class_Globals
Private Root As B4XView 'ignore
Private xui As XUI 'ignore
Dim zx As JhsIceZxing1
Private btn_scan As B4XView
End Sub
'You can add more parameters here.
Public Sub Initialize As Object
Return Me
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'load the layout to Root
Root.LoadLayout("scannerD")
End Sub
Private Sub btn_scan_Click
zx.isportrait = True
zx.useFrontCam = False
zx.theFrameColor = Colors.Red
zx.theLaserColor = Colors.Green
zx.theMaskColor = Colors.Blue
zx.theResultColor = Colors.Yellow
zx.theResultPointColor = Colors.Magenta
zx.BeginScan("myzx")
End Sub
Sub myzx_result(atype As String,Values As String)
Log("type:" & atype & "Values:" & Values)
Msgbox(Values,"type:" & atype)
End Sub
'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.