This page refers to the [Camera](https://developer.android.com/reference/android/hardware/Camera.md.txt) class, which
is deprecated. We recommend using [CameraX](https://developer.android.com/media/camera/camerax.md.txt) or, for specific use
cases, [Camera2](https://developer.android.com/media/camera/camera2.md.txt). 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](https://developer.android.com/media/camera/camerax/camera1-to-camerax.md.txt). Alternatively, you
can use the [agentic
skill for Camera1 to CameraX migration](https://github.com/android/skills/blob/main/camera/camerax/SKILL.md).

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.

## Documentation

- [Take photos](https://developer.android.com/media/camera/camera-deprecated/photobasics.md.txt)
- [Record videos](https://developer.android.com/media/camera/camera-deprecated/videobasics.md.txt)
- [Control the camera](https://developer.android.com/media/camera/camera-deprecated/cameradirect.md.txt)
- [Camera API](https://developer.android.com/media/camera/camera-deprecated/camera-api.md.txt)