android.hardware.Camera tells me, lock() and unlock() , that I probably don't need this method if I don't record a video. Well, I'm recording a video.
unlock() supposed to be called "before calling android.media.MediaRecorder.setCamera (Camera)". It is simple enough; I can simply put the unlock() call just before the setCamera() call. But what time should I call lock() ? Immediately after setCamera() ? After MediaRecorder.stop() ? Or another time? How do I know when to lock the camera?
Carl Manaster
source share