Integrate the Jetpack CameraX library to ensure high-quality, consistent camera capture across the diverse Android-powered device ecosystem. Adopting this library provides a stable, feature-rich experience across various form factors, such as phones, tablets, foldables, and XR devices. By migrating to modern camera APIs, apps can achieve better quality and maintain a more reliable user experience regardless of the device hardware.
Required implementation
To qualify for AEP, your app must adhere to the following requirements:
| ID | Guideline |
|---|---|
| AEP-CX-GAA |
The app must not use the legacy `_android.hardware.Camera API_` (Camera1). You should migrate to use CameraX (or Camera2).
Note: Using the Camera2 framework is a valid alternative for apps that require a custom camera stack. |
Guideline applicability
This guideline applies to:
- Apps that support media capture (images or video).
- Phone, tablet, foldable, and XR form factors.
Exemptions
| ID | Exemption |
|---|---|
| AEP-CX-EAA | Apps can use an equivalent alternative framework that provides similar quality, user capabilities, stability, and compatibility across the ecosystem. Contact support if you have a suitable framework for consideration. |
Feature documentation and resources
The following resources provide implementation guidance and technical details on the CameraX feature. These resources are for your reference only and don't contain additional program requirements.