A professional, hands-on learning project dedicated to mastering the Android CameraX ecosystem using Kotlin and Jetpack Compose.
This repository transforms a basic camera preview into a "Pro" photography tool, with each feature documented to provide a deep understanding of the underlying Android hardware and software architecture.
- Clone the repository.
- Open in Android Studio (Ladybug or newer).
- Run on a physical device (Camera features require real hardware).
Since this is a learning-first project, every major feature includes a technical deep-dive guide:
- 📘 CameraX Architecture — Use cases, lifecycles, and initialization flows.
- 🔬 Frame Production Pipeline — A technical look at BufferQueues and the Android Graphics Stack.
- 🤖 Image Analysis & ML Kit — Real-time QR/Barcode scanning and buffer management.
- 🎥 Video Capture API — Professional video/audio recording using the modern
Recorderengine. - 🛠️ Manual Controls & Interop — Low-level hardware access for Zoom, Exposure, and Torch.
- 👯 Concurrent Camera (Dual Mode) — Simultaneous Front + Back camera streaming (PiP).
- ✨ Vendor Extensions — Unlocking manufacturer magic like Night Mode and Bokeh.
- Smart Scanning: Real-time barcode/QR detection via ML Kit.
- Pro Capture: High-quality photo and video recording directly to the public Gallery.
- Manual Mode: Precision control over Zoom (Vertical Slider) and Exposure (EV).
- Dual Mode: Picture-in-Picture support for simultaneous sensor streaming.
- Manufacturer Effects: Dynamic detection and activation of hardware Night/Bokeh modes.
- Edge-to-Edge: Modern UI with proper
Scaffoldpadding and Material 3 design.
Built for developers who want to understand how things work under the hood. Feel free to explore, fork, and learn!