Recently there were some topics(on Kodular Community) about generating qr code offline and storing on device and I got inspiration/idea to create Qr extension.
It can generate and read Qr Code and Bar Code completely offline. Latest Version: 5.3 Released:2020-03-20T18:30:00Z Last Updated:2024-06-10T18:30:00Z
2.Blocks
Just 3 method and 2 event blocks
3.Documentation
A short documentation for the extension-
Creates BarCode and raises event 'BarCodeGenerated' with response and filepath
Note: File Path should be absolute like /storage/sdcard/qr.png
Decodes BarCode and raises event 'BarCodeDecoded' with result
Returns a list of supported Bar code formats which can be either decoded or encoded
Hi @ZonaKyle Welcome
Probably because file you want to decode does not exists.
Be sure to check if it exists or not before decoding.
Also you can find latest version here:
Problem 1 - Created PNG file is empty.
Problem 2 - When I use ImagePicker to get a QR code from my phone, I get an error: com.google.zxing.NotFoundException.
Problem 3 - App crashes on startup after compiling, with companion works fine.
Have you asked for WRITE_EXTERNAL_STORAGE permission?
Also I suggest you to not use ImagePicker.Selection block because it creates unnecessary temp files.You should use Activity Starter along with FileTools or TaifunFile extension.
See here how:
Yeah. I don't have a logo. I thought that made the logo :). What is a qr code logo?
Yes permission granted. ImagePicker returns the path to the created temporary file. The temporary file exists, so it should decode qr correctly. I work with ActivitiStarter later.
I did not know that a scanner is needed. I thought it was an independent extension
What is the maximum length of the text that you can encode in QRCODE? With short text, the extension generate and decodes well. When the text is a long, QR code is generated correctly, while when decoding there is a COM.GOGLE.ZXING.NOTFOUNDEXCEPTION error. I will add that the scanner correctly decodes the QR code.
Another thing is whether I can save the logo in the APP resources? I tried to give the path to the logo "http://localhost/logo.png" but it does not work.