Google made several announcements including the Pixel 3a and Android Q launch at the Google IO 2019 keynote session. Various new APIs and other software related upliftments were made public for the developers. Similarly, CameraX, a new API aimed at improving camera apps on Android is released. It works across most Android devices with easy-to-use implementation and compatibility across Android 5.0+ devices.

Developers can easily code the new camera apps using CameraX by utilizing the CameraX Extensions and optional add-ons. It can easily leverage the camera experience provided by the preinstalled camera app on any device. Developers only need to add a couple of lines code to induce all the features from the native camera app. It let fetch capabilities like Portrait, HDR, Night, and Beauty.

It is an easily usable API and will drastically reduce the code on third-party Android camera apps. The time-consuming task to code for every specific device in the camera app will end. Google has developed a dedicated CameraX test lab to examine the improvements in all operating systems starting from Android 5.0.

Google has modeled it in a plug-and-play environment to catch basic camera behavior easily. A set of different use-cases – Preview, Image analysis, and Image Capture is part of the latest API.

The new API is currently in Alpha stage, and Google recommends not to use it for the production environment. However, Google is promoting its use for testing purposes.

CameraX will surely benefit developers who code camera apps for Android. It will lead to better, streamlined, and well-optimized camera apps with compatibility across wider user-base.

(via | source)