Barcode API for Android Apps
Scan or Generate Barcodes in Just a Few Lines
More showcases >// Create instance of BarcodeGenerator
BarcodeGenerator gen = new BarcodeGenerator(EncodeTypes.QR, "ASPOSE");
// Set barcode x-dimension in pixels
gen.getParameters().getBarcode().getXDimension().setPixels(4);
// Generate barcode and save to PNG
gen.save("QRCode.png", BarCodeImageFormat.PNG);
> implementation group: ‘com.aspose’, name: ‘aspose-barcode-android-java’, version: ‘25.6’, ext: ‘aar’
Why Aspose.Barcode for Android?
The barcode library supports various settings to scan and decode damaged or distorted barcodes. It allows successfully reading barcode images with various defects, such as Gaussian noise, inverted colors, white spots, visual artifacts, colored background, and missing bars. To improve barcode readability, the API enables special methods and mechanisms, including median filtering, ‘salt-and-paper’ filtering, reducing image size, and others. Moreover, the barcode library benefits from advanced methods to decode industrial Data Matrix barcodes, read severely damaged QR codes, and even restore some data from incorrect barcodes.
Standards? Covered.
Aspose.BarCode for Android via Java Aspose.Barcode supports all major image formats, including vector formats like SVG and EMF, as well as PDF. Use our API to recognize files from scanners or cameras with ease. Here are all supported barcode symbologies, including 1D, 2D, postal, and composite types. Each one can be generated and recognized across all supported platforms.
Matrix / 2D Codes
- QR Code, MicroQR, rMQR
- Data Matrix, Industrial Data Matrix (DPM)
- Aztec
- Han Xin
- MaxiCode
- DotCode
Linear / 1D Codes
- UPCA, UPCE
- EAN13, EAN14, EAN8
- Code 128
- DataBar
- ITF
- Postal
Industry & Composite Codes
- GS1
- ECI
- Composite barcodes
- HIBC
- SwissQR
- Royal Mailmark
Built for Android
Aspose.Barcode for Android via Java is tailored for mobile development on Android. Compatible with Android API level 19 and higher, it integrates smoothly into Android Studio and supports modern development practices for tablets, phones, and embedded Android devices.
Live Code Demo
Paste text → get a barcode. Drop a file → get decoded data. Both examples come with auto-generated sample code so you can copy straight into your project.
Full Barcode Control for Mobile Apps
Aspose.Barcode for Android via Java empowers developers to add robust barcode features directly into Android applications. From retail and logistics to healthcare and banking, this mobile barcode library is optimized for real-time performance and works reliably even on mid-range devices. It’s ideal for apps that need accurate barcode reading or precise barcode generation on the go.
With full offline functionality and a clean Java API, you can:
- Recognize and generate 1D & 2D barcodes including QR, Aztec, Code 128, and more
- Scan barcodes from camera streams, photos, or files
- Customize barcode appearance, resolution, size, and alignment
- Use ECI, GS1, and postal barcode standards
- Embed barcode workflows into business or consumer apps with ease
Features and capabilities
Aspose.BarCode for Android via Java is a powerful development library to generate & recognize 1D & 2D barcodes from various image types at any angle. This API allows exporting generated barcodes to different high-quality image formats, enables modifying the appearance of generated barcodes and their parameters, such as background color, bar color, rotation angle, x-dimension, image quality, resolution, captions, size, and many others. It also provides rich barcode detecting and reading functionality and supports over 60 barcode types.
Save barcode labels in various formats
Recognize from stream or file
Encode & decode characters (non-english) in 2D types
Rotate barcode images at any angle
Scan barcodes from multi-page TIFF
Support for linear, 2D and postal symbologies