Google motivate developer for better apps for foldables

Nowadays, the user chooses their phone for the camera quality. If talk about the Samsung Galaxy S22 Ultra phone user like its camera quality. This captured amazing photos. Now, to enhance, camera ability app developers use Android’s Camera Framework. This framework shows the camera preview in the app.

Add Realmicentral to your Google News feed.   Follow US On Google News

The camera preview screen may become stretched, upside-down, or incorrectly rotated. Often these make the app crash if used in a multi-window environment. For solving these issues, Google brings the new CameraViewfinder. From the official blog, CameraViewfinder is a new artifact from the Jetpack library that allows you to quickly install camera previews with less effort. This CameraViewfinder implies either a TextureView or a SurfaceView, allowing the camera feed to adjust by the transformations.

The transformations include the correct aspect ratio, scale, and rotation. In addition. it is fully compatible with the Camera2 codebase. For a complete step-by-step process to use the CameraViewfinder.

Finally, the CameraViewfinder function is available for foldable phones, configuration changes, rotations, and multi-window modes.

If you like our news and want to be the first to get notifications of the latest news, then follow us on Twitter and Facebook and join our Telegram channel. Also, you can follow us on Google News for regular updates.

Leave a Comment