Hi everybody,
I have an app with two activities. From first activity the user starts the second activity by a button click, which shows a camera preview and every 2 or 3 seconds converts the YUV image to JPG using CameraEx Class. When the user closes the connection, the activity is finish-ed and cameraEx object is destroied.
If user clicks the first activity button the cycle is repeated again.
Many cycles I get no problem, but in some case the PreviewImageToJpeg generates method.not.found in getPreviewSize. I trap the error so the program is able to continue, but in this case further conversions fail.
I can get the error for many cycles, but after a few tries the process works again!
A call should not work in this alternate fashion!
Have anybody an hint for me?
I have an app with two activities. From first activity the user starts the second activity by a button click, which shows a camera preview and every 2 or 3 seconds converts the YUV image to JPG using CameraEx Class. When the user closes the connection, the activity is finish-ed and cameraEx object is destroied.
If user clicks the first activity button the cycle is repeated again.
Many cycles I get no problem, but in some case the PreviewImageToJpeg generates method.not.found in getPreviewSize. I trap the error so the program is able to continue, but in this case further conversions fail.
I can get the error for many cycles, but after a few tries the process works again!
A call should not work in this alternate fashion!
Have anybody an hint for me?