capture a snapshot of the CameraXViewfinder

27 views
Skip to first unread message

Eugene B

unread,
Sep 16, 2025, 12:48:25 PM (2 days ago) Sep 16
to Android CameraX Discussion Group
How can I capture a snapshot of the Viewfinder in CameraX to prevent a black screen during use case rebinding? I know PreviewView  offers getBitmap for this purpose, but we're using the CameraXViewfinder and need a similar solution to maintain a non-black preview during transitions.

Scott Nien

unread,
Sep 16, 2025, 11:52:15 PM (2 days ago) Sep 16
to Eugene B, Android CameraX Discussion Group
This is currently unsupported. 
Just filed a bug https://issuetracker.google.com/445570297 to track it. 



On Wed, Sep 17, 2025 at 12:48 AM Eugene B <eugeneb...@gmail.com> wrote:
How can I capture a snapshot of the Viewfinder in CameraX to prevent a black screen during use case rebinding? I know PreviewView  offers getBitmap for this purpose, but we're using the CameraXViewfinder and need a similar solution to maintain a non-black preview during transitions.

--
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/690dd6d8-683a-425a-b6ce-408ce8f40025n%40android.com.
Reply all
Reply to author
Forward
0 new messages