Android Question Using CamEx library, can't get the camera to start twice

NeoTechni

Well-Known Member
Licensed User
Longtime User
I've put log(LastExceptions) and all I can get is in sub CommitParameters:

(NoSuchMethodException) java.lang.NoSuchMethodException: setParameters [class android.hardware.Camera$Parameters]

I've googled it and it means a parameter is wrong, so I've tried caching the Preview size on the first init, and trying to set the preview size to it on the second init, but it's still failing.

Is there a way to reset the parameters? Or something else I'm missing?

EDIT: I think I found the issue. The panel needed to be visible.
 
Last edited:
Top