I know this seems a duplicate question to https://stackoverflow.com/q/13846967/1665507 But nobody have answered it yet.My problem is also the same.While capturing images, the camera freezes for 2 sec and again the camera preview restarts to take new image. But my requirement is to remove that freezing time i.e images will be captured in the background without disturbing the camera preview.I know its possible because I have already one application installed in my device which do the same as I want.
I am using the following line to take image,
preview.camera.takePicture(shutterCallback, rawCallback, jpegCallback);
and the following to restart the preview,
preview.camera.startPreview();
Any help will be appreciated. Thanks in advance :)