I\'m creating a video capture activity for an app I\'m making, and I want to capture a preview frame as well to use as a playback button. I\'ve set the SurfaceView
SurfaceView
mCamera.unlock() detaches the camera from the process. It's necessary to call:
mCamera.unlock()
mCamera.reconnect();
before calling:
mCamera.setOneShotPreviewCallback(mPreviewCallback);
(but after everything else).