How to resume android camera preview after onPictureTaken function?

baha picture baha · May 7, 2012 · Viewed 9k times · Source

I am developing an app that take pictures from camera object and save it to the sdcard. It works great except some things.(I cant config some parameters for example resolution). But when I take picture it freeze on the screen. I just want to resume the preview and capturing same way after I take picture. here is the full code : http://bahacanaydin.blogspot.com/2012/05/package-com.html

Answer

lenik picture lenik · May 8, 2012

You have to put mCamera.startPreview(); inside your onPictureTaken() function to restart preview again, because it stops automatically when the picture is taken.