Qr : Read and Create Qr/Bar Code offline

You will have to provide a full path of the directory where you want to save the barcode.

The path to save in Download will be /storage/emulated/0/Download.

Hello!

I'm new to the App Inventor scene, and I wanted to try generating a QR code from your extension. Unfortunately, when I connect to the companion app, I get this error

Unable to load file: http://ai2.appinventor.mit.edu/ode/download/file/5724481720287232/assets/external_comps/com.sunny.qr/classes.jar

on the companion app. Is there somewhere I can download this file? All I have is the AIX file.

Thanks.

what happens, if you restart the companion app?
did you upload loads of assets in the media section of your project?

Taifun

When I restarted the companion app yesterday, I got the same error.

Actually, all I have is an image, a text box, a button, and a QR Code generator extension. This also happened with some other QR Code generator extensions I was testing.

All is well today though. I just shut down the computer after about a week of hibernating. Truly, a reboot is the only thing we need most of the times. :grin:

Thanks for your response.

When I try this program made by sir vknow360 and change the path to /storage/emulated/0 nothing happens.
I might be confused

You can no longer save a file in the root dir or an arbitrary folder of the external storage (on Android 11+). Save it in one of the Shared folders or the ASD.

See also here:

How to return QR code picture after I created the QR code?

It is in the BarCodeGenerated event. Use the filePath to get the file path in the Android storage.

image

Did you read the main post and the documentation? The usage is right there.

I used this method,but its image has not changed.

Please show your blocks then.

A.aia (33.1 KB)

As @Anke mentioned, starting from Android 11, do not save the file in /storage/emulated/0.

image

B.aia (67.9 KB)

OK, thanks

Can I convert my business card into QR code?

Unfortunately, not possible with this extension.

how create a barcode?

You can get a list of supported bar formats with BarcodeFormats method.

1 Like

plese tell this informaton in read me on github

plese tell this informaton in read me on github thanks

Sure, but did it solve your issue?

1 Like