如何恢复安卓相机preVIEW onPictureTaken功能之后?

如何恢复安卓相机preVIEW onPictureTaken功能之后?

问题描述:

我开发一个应用程序,采取从相机对象的图片并将其保存到SD卡中。除了一些东西它的伟大工程。(我不能配置例如分辨率一些参数)。但是,当我拍照就冻结在屏幕上。我只是想恢复preVIEW和捕捉同样的方式我拍照了。这里是满code:
http://bahacanaydin.blogspot.com/2012/05/package-com.html

I am developing an app that take pictures from camera object and save it to the sdcard. It works great except some things.(I cant config some parameters for example resolution). But when I take picture it freeze on the screen. I just want to resume the preview and capturing same way after I take picture. here is the full code : http://bahacanaydin.blogspot.com/2012/05/package-com.html

您必须把 mCamera.start preVIEW(); 你的 onPictureTaken()功能再次重新启动preVIEW,因为它停止时自动拍摄照片。

You have to put mCamera.startPreview(); inside your onPictureTaken() function to restart preview again, because it stops automatically when the picture is taken.