开发者

Disable Camera Snapshot after calling Camera.takePicture Android

I am calling takePicture() on my camera object while showing a preview of what is being taken using a surfaceView. I want to be 开发者_StackOverflow社区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 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.


(new AsyncTask<byte[], String, String>() {

                @Override
                protected String doInBackground(byte[]... params) {
                    savePictureToSDCard(params[0]);
                    return null;
                }
            }).execute(imageData);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜