New Camera and CameraEx

MotoMusher

Active Member
Licensed User
Longtime User
Any ideas on how to troubleshoot camex.takepicture? It locks up on me every 5th picture or so, sometimes first time, just seems very random.

I have been using ACL for a while with a number of users and no issues. I do want to get rid of ACL and move to this for the front camera.

There is no error, nothing in debug log. Everything just stops. I am using the sample app with a few edits. Other than that, it is working fine.

B4X:
Sub btnTakePicture_Click
   Log("take picture start")
   camEx.TakePicture
   Log("take picture end")
'   camEx.StopPreview
End Sub
 

davidlub

Member
Licensed User
Longtime User
Hi,

I am getting the same problem on two different devices so I think it is not a system issue in the device but a problem in my app. It happens after three or four pictures and leaves the app in a strange corrupted state. I did not see anything untoward in the logs.

I have tried the suggested fix to pause for 3 seconds while "TakePicture" runs but that made no difference. I also commented out Sub Camera_Preview in CameraEx and that made no difference either.

Hope someone can help.

Thanks

David
 
Upvote 0
Top