Android Question CameraEx doesn't work.

nabang97

New Member
I want to take a picture when the PanelCamera is visible. But I can not initialize the camera. When I pressed on the BtnCamera, it just showed a black screen and return start camera false. But when I tried on a new project, it's work. I don't why, please help.. :(
 

JohnC

Expert
Licensed User
Longtime User
Try adding a Sleep(500) before initialize like this:

B4X:
Sub Activity_Resume
    Sleep (500)
    InitializeCamera  
End Sub
 
Last edited:
Upvote 0
Top