Page 1 of 1

Barcode Scanner Widget issue

Posted: Thu May 28, 2020 1:59 pm
by giovanni_c
Hi everybody,
I would like to share with you a problem that I am experiencing with the barcode scanner widget that I would like to use in my mobile app for android.
I already commented with my problems in the QA Center but I don't know if that is the proper way to solve my problem so I post it also here. I am sorry if the admins detects this as a crossposting: in this case you can delete my message.

The problem is simple to describe: adding the barcode widget to my app it's not showed. The stack of my app is attached to this post.
Adding the widget on a brand new stack it works properly...

Can someone help me to understand what's wrong in my stack? What does make the widget not working?
Thank you in advance to who will find the time to help me to solve the problem.

Re: Barcode Scanner Widget issue

Posted: Thu May 28, 2020 3:58 pm
by mrcoollion
Do you mean that it does not show in your stack while you are in run or edit mode in LiveCode? Or do you mean it does not show after compiling to Android on an Android device?

Paul

Re: Barcode Scanner Widget issue

Posted: Fri May 29, 2020 7:38 am
by giovanni_c
I mean that it doesn't show in the device.
Anyway Panos just confirmed that is a bug and suggested a valid workaround so for anyone that is experiencing the same issue can check in the QA Center for details.
Briefly the problem is due to the textFont property set in the stack and inherited by the widget.
The workaround is the following:

set the textFont the widget "myScanner" to "(Default)"

Thank you.

Re: Barcode Scanner Widget issue

Posted: Fri May 29, 2020 10:52 am
by bangkok
giovanni_c wrote:
Fri May 29, 2020 7:38 am
set the textFont the widget "myScanner" to "(Default)"
Good tip to know !

You could edit the title of your message by adding "[SOLVED]". That will help future readers, people who peruse or do searches on the site.

Android BarCode Scanner Widgets not working

Posted: Sat May 30, 2020 5:40 pm
by yunior.portilla
I am developing an android application that needs to read the information from a QR Code.

I am using the Android Barcode Scanner widgets, it lifts the camera well inside the application but it does nothing, the barcodeDetected messages do not run.

I gave him all the permissions and nothing.

Re: Android BarCode Scanner Widgets not working

Posted: Sun May 31, 2020 2:00 am
by bangkok
yunior.portilla wrote:
Sat May 30, 2020 5:40 pm
I am developing an android application that needs to read the information from a QR Code.

I am using the Android Barcode Scanner widgets, it lifts the camera well inside the application but it does nothing, the barcodeDetected messages do not run.
See :

https://quality.livecode.com/show_bug.cgi?id=22609