如何恢复安卓相机preVIEW onPictureTaken功能之后? [英] How to resume android camera preview after onPictureTaken function?
问题描述
我开发一个应用程序,采取从相机对象的图片并将其保存到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();
你的<$ C $内C> 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.
这篇关于如何恢复安卓相机preVIEW onPictureTaken功能之后?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!