Add a QR code scanner to any Android app with a single Gradle dependency and a few lines of Java or Kotlin code
Embed the camera scanner view directly inside your own screen instead of launching a separate scanner activity
Generate a QR code image from any text string and display it on screen without a network call
Customize the scanner to only accept specific barcode formats and disable the beep sound for silent environments
ZXing Android Embedded is an Android library that adds barcode scanning to your app. Barcode scanning means pointing the phone camera at a QR code or traditional barcode and reading the data encoded in it. The library is built on top of ZXing, an established open-source decoder, but is packaged independently so it can be dropped into any Android project without linking to the full ZXing app. Adding the library to a project takes a single line in the Gradle build file, which is the standard configuration tool for Android apps. Once added, you can launch the scanner with just a few lines of code. A separate approach lets you embed the camera view directly into your own screen if you want more control over the look and feel. Scanning works in both portrait and landscape orientation. The camera starts up in a background thread, which keeps the app responsive while the hardware is initializing. You can customize the scanner: choose which barcode formats to accept, turn off the beep sound, save a picture of the scanned barcode, or switch between front and rear cameras. The library also includes basic support for generating barcodes, not just reading them. For example, you can create a QR code image from any string and display it on screen. This is described as a secondary feature rather than the main purpose. The camera permission is bundled with the library, so you do not need to declare it manually in most cases. On Android 6 and later, the permission is requested from the user at the moment the scanner is first opened. The library requires Android SDK version 24 or higher by default, with additional configuration steps available for projects that need to support older devices back to version 19. The license is Apache 2.0.
← journeyapps on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.