I’m doing one project with camera and after taking one photo camera freezes and u have to finish the activity and recall it again to take another photo, how can I take photo freeze for just 1-2 sec and then surface view to have the camera again. the same for video I am using media recorder, taking video press stop video saves and screen is still alive but I can not take video again I have to restart the activity?
Anybody have a solution?
Do any image processing in a background
AsyncTask. This will allow your UI Activity to continue on and take another picture.Edit: I cannot delete an accepted answer so please see stoefin’s answer below. Calling
camera.startPreview()before taking the next photo works for him.