Review historical code to understand how Google abstracted camera API differences before Jetpack CameraX existed.
Migrate an older Android app that uses CameraView to the current Jetpack CameraX API.
Deprecated, not recommended for new projects. Use Jetpack CameraX instead.
CameraView was an Android library from Google that made it easier to add a camera preview to an Android app. Instead of writing the low-level code to open the camera and show a live view, a developer could place a single element in their layout file and call start and stop in the appropriate lifecycle methods. The library handled differences between older and newer Android versions automatically. On devices running older versions of Android it used the original camera interface, and on newer devices it switched to the more capable second-generation camera interface. Supported settings included aspect ratio, auto-focus on or off, and flash mode. This project is now deprecated and no longer maintained. Google recommends using Jetpack CameraX instead, which is the current official Android library for camera functionality. The README notes that CameraView was not an official Google product, despite being hosted in the Google GitHub organization.
← google on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.