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.
| google/cameraview | hongyangandroid/baseadapter | stleary/json-java | |
|---|---|---|---|
| Stars | 4,709 | 4,710 | 4,714 |
| Language | Java | Java | Java |
| Setup difficulty | moderate | easy | easy |
| Complexity | 2/5 | 2/5 | 2/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
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.
A now-deprecated Google Android library that simplified adding a camera preview to apps, no longer maintained, and Google recommends switching to Jetpack CameraX for all new development.
Mainly Java. The stack also includes Java, Android, Jetpack CameraX.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.