This page refers to the Camera class, which
is deprecated. We recommend using CameraX or, for specific use
cases, Camera2. Both CameraX and Camera2 support Android 5.0
(API level 21) and higher.
To learn how to migrate from Camera1 to CameraX, see Migrate Camera1 to CameraX. Alternatively, you
can use the agentic
skill for Camera1 to CameraX migration.
Android provides full access to the device camera hardware so you can build a wide range of camera or vision-based apps. Or if you just need a way for the user to capture a photo, you can request an existing camera app to capture a photo and return it to you.