QR code generator with gradient background, bar gradient, image background, and icon.





For the QrCode to work, you'll need to add the BarcodeScanner component, which comes built into App Inventor, to your design area.
![]()
This is in order to integrate the library that comes with that component.
LogoPath
Set the logo path for QR code.
You can add the logo from a URL, assets, and from the device's gallery using ImagePicker.
LogoPathis set before callingGenerateCode.
LogoSize
Set the logo size as percentage of QR code (10-40%).
Default value without using this property: 20
SaveLocation
Set where to save the QR code.
Options: internal, downloads, pictures.
GenerateCode
Generate and save a QR code.
BackgroundGradient
Set gradient background colors and direction.
BarGradient
Set gradient colors for QR code bars and direction.
ImageBackground
Set an image as background with opacity (0-100) and size percentage relative to QR (0-100).
Image can be from assets (prefix with 'asset://'), device storage (file path), or URL (http:// or https://).
DeleteQRFile
Delete a generated QR code file.
You will need to enter the full path.
QRCodeDirectory
Get the directory where QR codes are stored.

ImageSaved
Triggered when QR code is successfully saved.

ErrorOccurred
Triggered when an error occurs during QR code generation.

v1.1 Nov 20, 2025.
- The following functions were removed:
ResetBarGradientandResetImageBackground. - The GenerateCode function was modified: The
logoPathparameter was removed and theLogoPathproperty was created separately. - The following properties were also added:
LogoSizeandSaveLocation. - The following functions were added:
DeleteQRFileandGetQRCodeDirectory.
In Companion, LogoPath and imageName do not display the image with absolute paths; it is better to use ImagePicker for this to be displayed.
QrCode.aia (65.9 KB)
joejsanz.joedevqrcode.aix (25.8 KB)
JDK: 11
Minimum API Level: 21
Updated On: 2025-11-20T08:00:00Z
Built using: FAST v5.3.1-premium
I used the zxing library but removed it due to size conflicts, since there was a zxing library integrated with App Inventor, so I'm using the one that comes integrated with App Inventor. Barcode.jar
Thanks.









