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

66 views
Skip to first unread message

Leong kerwin

unread,
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.
Screenshot_20240617_102447.png
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.
Screenshot_20240617_103945.png
Screen_recording_20240617_103805.mp4

Leong kerwin

unread,
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 https://github.com/kerwinlongway/camera-samples.git

Scott Nien

unread,
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 ? 

`preview.setImplementationMode(PreviewView.ImplementationMode.COMPATIBLE)`


--
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 on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/01a8448b-d962-4b04-9b7c-4afa5f2650fen%40android.com.

Leong kerwin

unread,
Jun 24, 2024, 3:39:57 AMJun 24
to Android CameraX Discussion Group, scot...@google.com, 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
Forward
0 new messages