Scan Barcodes with ML Kit on Android

MLKit makes it easy for developers to detect barcodes and extract information. Pairing MLKit with the CameraX API lets you develop powerful applications that can process barcodes in real-time and work reliably across devices.

In this coffee break codelab, you'll explore:
  • Importance of the CameraX API 
  • Integrating the camera preview 
  • Handling the camera permission 
  • Add Image Analyzer
  • Handling lifecycle states with the preview 
  • Detecting and reading barcodes 
  • Handle clicks on QR code
  • Add Flash support to read barcodes
  • Code challenge with solution

Meet the instructor

Subhrajyoti Sen 

Content Author & Course Instructor

More courses by the instructor