问题描述
我用下面的code捕捉到Android的图像
I am using the following code to capture the image in Android
意图cameraIntent =新意图(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(cameraIntent,100);
拍摄图像时,其表现出preVIEW并询问是否保存或放弃映像之后。
After capturing an image, its showing a preview and asking whether to save or discard the image.
反正是有,我可以避免这种preVIEW?
Is there anyway where i can avoid this preview?
在Android的dosent摄像头应用程序显示了preVIEW。所以应该有一种方法,我猜。
The Camera app in Android dosent shows the preview. So there should be a way i guess.
在此先感谢。
推荐答案
相机应用程序不给其他应用禁用确认画面,即使在相机应用程序本身不显示确认屏幕的选项。
The camera app doesn't give other apps the option to disable the confirmation screen, even though the camera app itself doesn't show the confirmation screen.
因此,这是不可能的,不显示确认画面。
Therefore it is not possible for not showing the confirmation screen.
但是,我们可以通过使用相机库的Android编写自定义应用程序实现这一目标。 (请参见和<一个href=\"http://stackoverflow.com/questions/9744790/android-possible-to-camera-capture-without-a-$p$pview\">this)
However we can achieve this by writing a custom app using the Camera library in android. (see this and this)
这篇关于安卓:如何捕获图像,而不显示preVIEW的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!