--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/d993ffaf-3d89-46d1-9a99-1b5f73307137n%40android.com.
I am developing a camera app using CameraX and have a requirement to select a specific lens—such as the wide-angle or telephoto lens—similar to the functionality available in the native camera app on Pixel 8 and Pixel 9 Pro devices. Since Pixel phones are our standard, I would like to know if it is possible to programmatically switch between individual lenses, as we have already implemented this feature in our iOS app.
Additionally, I have noticed a potential issue with CameraX:
When I launch the camera with setLinearZoom(0.30f), the zoom works as expected initially. However, if I minimize the app and then maximize it again, the zoom value automatically resets to 1x or 2x. Could you please help me understand why this behavior occurs? Is this a known issue with CameraX, or is there a recommended way to maintain the zoom state when the app goes into the background?
Thank you!