Technology

Google urges developers to build apps compatible with the foldable smartphones

A trend observed in smartphone buyers is the focus on camera capabilities. Most users switch between smartphones to get benefitted from the great camera capabilities. For instance, the Galaxy S22 ultra was in huge demand owing to the exceptional performance of its camera. Given this fact, we can say that camera is definitely one of the prime reasons for a consumer to buy any given smartphone.

For this reason, app developers are ought to comply with the Camera Framework adopted in Android smartphones to use the camera capabilities in their apps. The earliest use case of the framework requires the implementation of the camera preview that will be presented in the app. Since foldable devices like Galaxy Z Fold 4 are becoming increasingly popular among users there is a concern about the camera preview screens. Owing to the framework of the screen the camera preview screen may become upside-down, stretched, or incorrectly rotated. This could even crash the app when used in a multi-window environment.

To address this issue, Google established some new guidelines with the new CameraViewfinder. It will cater to the details as well as present a streamlined camera experience. Google mentioned in the official blog that CameraViewfinder is a new relic from the Jetpack library. It allows the users to immediately employ camera previews with slight effort.

The CameraViewfinder engages either a TextureView or a SurfaceView.  Thus, permitting the camera feed to adapt as per the alterations. The alterations comprise the correct aspect ratio, scale, as well as rotation. Furthermore, it is completely consistent with the Camera2 codebase. The CameraViewfinder function is now available to use throughout foldable phones, configuration changes, multi-window modes, and rotations. Additionally, the blog also mentions that the function of CameraViewfinder has been tested on various foldable devices.

Recent Posts

End of the PlayStation disc: Angry fans are now planning a mass boycott

The announced disc shutdown on PlayStation is currently heating up fans' minds. While Sony plays…

11 hours ago

GTA 6 codes are region-specific and even have an expiration date in Japan

In the future or initially, physical GTA 6 cases will only contain a download code…

11 hours ago

Samsung Galaxy: There will be two new premium smartphones in 2027

Samsung customers will be able to enjoy a wider selection of premium smartphones next year…

11 hours ago

Blade Runner 2099: Amazon shows the teaser trailer for the miniseries

Amazon has released the first teaser trailer for Blade Runner 2099, which already gives a…

11 hours ago

Marvel: Ryan Gosling introduced as Ghost Rider, new Black Panther

Marvel relies on well-known brands in the film universe, but deliberately swaps out the faces…

11 hours ago

Google Pixel user in court over the functionality of his custom ROM

A US citizen is on trial because he used a special security feature of his…

11 hours ago