Drop-in camera scanning UI for Android

Build fast, reliable scanning screens without assembling camera, UI, and recognition plumbing from scratch. Aspose.BarCode for Android via Java includes a barcode scanning component that can run as a standalone Activity or be embedded as a Fragment, with configuration for recognition settings and the scan area.

Standards? Covered.

Aspose.BarCode for Android via Java 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. It is compatible with Android API level 19 and higher. You can integrate it into Gradle projects as an AAR from the Aspose Maven repository, and use Android Studio for development.

Microsoft Windows
Linux
Android
macOS
Android Studio
Gradle
IntelliJ IDEA
GitHub
Docker

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.


// Initialize BarcodeGenerator BarcodeGenerator gen = new BarcodeGenerator(EncodeTypes.QR, "1234567"); // Set generation parameters gen.getParameters().getBarcode().getXDimension().setPixels(7); gen.getParameters().getBorder().setColor(new Color(0xff000000, true)); gen.getParameters().getBorder().getWidth().setPixels(7); // Generate and save Barcode image gen.save("image.png", BarCodeImageFormat.PNG);

// Initialize BarCodeReader BarCodeReader reader = new BarCodeReader("image.png", DecodeType.QR); // Set recognition quality reader.setQualitySettings(QualitySettings.getHighPerformance()); // Recognize barcodes and output results BarCodeResult[] res = reader.readBarCodes(); Log.d("BarcodeTest", String.format("Recognized %d barcode(s)", res.length)); for (BarCodeResult result : res) { Log.d("BarcodeTest", String.format("%s: %s", result.getCodeTypeName(), result.getCodeText())); }

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 workflows and works well on mid-range devices. It is a strong fit for apps that need accurate barcode reading or precise barcode generation on the go.

With a clean Java API and an Android-ready scanning component, you can:

  • Recognize and generate 1D and 2D barcodes including QR, Aztec, Code 128, and more
  • Scan barcodes from camera capture, 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 a consistent UX

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 80 barcode types.

Feature icon

Save barcode labels in various formats

Feature icon

Recognize from stream or file

Feature icon

Encode & decode characters (non-english) in 2D types

Feature icon

Rotate barcode images at any angle

Feature icon

Scan barcodes from multi-page TIFF and PDF files with Aspose.PDF

Feature icon

Support for linear, 2D and postal symbologies