Android Question camera class error

cwt

Active Member
Licensed User
Longtime User
For most users of my app, the camera class works fine. I have one user who gets the error message shown below.

His device is a Samsung Galaxy S6 running Android 6.0.1

I am using B4A version 6.31

Any suggestions on how to trouble-shoot this?

Thanks

Chuck
 

JordiCP

Expert
Licensed User
Longtime User
Does this user always get the error or it only happens from time to time? Also, is your code based in cameraEx class/lib?

This exception can appear if the picture can't be taken because preview isn't active, the cam has been released, or other low-level timing issues which can be vendor-dependant

As a protection against this, you could only let the user take a picture when you know for sure that the preview is running, also prevent the button (if there is one) to be pressed two consecutive times, and put this part (takePicture) in a try/catch block
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…