Android Question Problem with [B4X] [B4XPages] Barcode Reader example

davemorris

Active Member
Licensed User
Longtime User
Hi, Guy
Can someone point me in the correct direction, I can't Erel's get example working, is don't appear to work on any QR I have provided.

It don't work on an old Android 6 also my Android 10 phone. (i.e. the toast message don't show the url)

Sorry if I am missing something simple.

Regards
Dave Morris
 
Last edited:

josejad

Expert
Licensed User
Longtime User
Hi:

I’m not in my computer now, but you’re trying to read some qr code not supported.
Read this, in some place in the app you have to set ALL_FORMATS if ypu don’t know the format you’re reading
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Check this post. If with that list in the array you’re not success, then just put ALL_FORMATS

EDITED: See post 8 in the thread, I can’t set the link
 
Last edited:
Upvote 0

davemorris

Active Member
Licensed User
Longtime User
hi - thanks for the input ALL_FORMATS works
Change code in B4XPage_Created( ):
CreateDetector (Array("CODE_128", "CODE_93", "QR_CODE"))

'Changed to
CreateDetector (Array("ALL_FORMATS"))

I am looking at QR codes so I tried
B4XPage_Created():
CreateDetector (Array("QR_CODE"))

And that also worked, but what I don't understand is the original code supported 3 formats including "QR_CODE" but for some reason it did not work.

Anyway, once again thanks for your help

Dave Morris
 
Upvote 0
Top