view bug on Galaxy Note8(One UI 1.0/Android9)

Skip to first unread message

Leong kerwin

Jun 16, 2024, 10:41:49 PMJun 16
to Android CameraX Discussion Group
Hello developers:
I would like to share a problem I encountered when developing a camera application using camerax.
a part of preview view of camera display on the screen unexpected. as you see the photo.
Click the test button for the second time to select the mp4 file to play and it will be displayed normally.
But when I go to the desktop and come back, the error appears again.

Leong kerwin

Jun 16, 2024, 10:47:23 PMJun 16
to Android CameraX Discussion Group, Leong kerwin
I have reproduced this bug with the cameraxBasic project based on the camerax-simples repository. please check the  branch viewbug on

Scott Nien

Jun 17, 2024, 12:14:44 AMJun 17
to Leong kerwin, Android CameraX Discussion Group
Hi Leong,  
This is probably a bug in SurfaceView. 

Can you try to set the implementationMode to COMPATIBLE before bindToLifecycle call like the following ? 


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
To view this discussion on the web visit

Leong kerwin

Jun 24, 2024, 3:39:57 AMJun 24
to Android CameraX Discussion Group,, Android CameraX Discussion Group, Leong kerwin
Thanks Scott,
It work.
In addition, I found that many mobile phones have similar problems.
Reply all
Reply to author
0 new messages