Alex Rivera | Logout

Android camera freezes after taking one photo

Asked 2011-05-26T13:38:35.847
17

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?

Edit
Report

1 Answer

0

Instead of using the activities defined by the existing camera app on your phone, you can write your own Activity that uses the Camera API directly to accomplish the functionality you describe. The Camera class is documented here: http://developer.android.com/reference/android/hardware/Camera.html

answered 2011-05-26T14:15:16.297

Your Answer