Camera2 overview

Note: This page refers to the Camera2 package. Unless your app requires specific, low-level features from Camera2, we recommend using CameraX. Both CameraX and Camera2 support Android 5.0 (API level 21) and higher.

Camera2 is the low-level Android camera package that replaces the deprecated Camera class. Camera2 provides in-depth controls for complex use cases, but requires you to manage device-specific configurations. For more information, see the Camera2 reference documentation.

For most developers, we recommend the CameraX Jetpack library. To help you decide which camera library to use, see Choose a camera library.

Additional resources

See the following additional resources to learn more about Camera2.

Camera2 sample projects