本文介绍了如何恢复安卓相机preVIEW onPictureTaken功能之后?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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功能之后?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 05:47