I want to be able to call takePicture() without the preview screen freezing with a snapshot of what has just been taken. How can I disable this and keep the preview running in the background? You don't.
While the device is reading the data off the CCD and converting into JPEG, the SurfaceView preview is not updated.
Thanks for the answer. How can I restart the preview again as quickly as possible after capturing an image? I am trying to give the user an option to save the image while still having the preview running in the background, I have it running OK by saving the previewFrame but the image quality is not the best and feel taking the image from the camera directly would be better.
Any opinions will be appreciated. – SamRowley Feb 24 at 11:59 @SamRowley: "How can I restart the preview again as quickly as possible after capturing an image? " -- in onPictureTaken() of your callback, call startPreview().
Here is a project demonstrating saving the image while the preview has been restarted, through an AsyncTask: github. Com/commonsguy/cw-advandroid/tree/master/Camera/Picture – CommonsWare Feb 24 at 12:36.
(new AsyncTask() { @Override protected String doInBackground(byte... params) { savePictureToSDCard(params0); return null; } }). Execute(imageData).
I am calling takePicture() on my camera object while showing a preview of what is being taken using a surfaceView. I want to be able to call takePicture() without the preview screen freezing with a snapshot of what has just been taken. How can I disable this and keep the preview running in the background?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.