Android Question Camera2 - Problem with Camera_SurfaceReady

Steve Addy

Member
Licensed User
I'm writing a timelapse app using a foreground service to keep the process running and all is fine until the display "goes to sleep".

When the Main Activity is re-awakened by a CallSubDelayed from my foreground service, there is no response from the line "Wait For Camera_SurfaceReady" in "Private Sub CreateSurface" in CamEX2

Is there any solution for this problem when the display has gone to sleep?
 

Erel

Administrator
Staff member
Licensed User
Run the Camera2 example. Click on the home button and then back to the app. Does the camera work?
 
Top