Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android camera freezes after taking one photo

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?

like image 970
Toshe Avatar asked May 26 '11 13:05

Toshe


1 Answers

I found a solution for this: After taking a picture, preview display will have stopped. To take more photos, call camera.startPreview() again first.

like image 80
stoefln Avatar answered Oct 04 '22 18:10

stoefln