问题描述
可以禁用/删除此照片确认对话框:
it's possible to disable/remove this photo confirmation dialog:
我需要以某种方式跳过此对话框,但我仍想使用Intent
.我发现了这个 android:拍摄没有保存"的相机图片;/删除"确认,但我不想使用SurfaceView
.
I need somehow skip this dialog but I still want use an Intent
. I found this android: Take camera picture without "save" / "delete" confirmation but I don't want use SurfaceView
.
推荐答案
那不可能.
有超过 26,000个Android设备型号.在他们之间,有数百个不同预先安装的相机应用程序.此外,用户可以从Play商店或其他地方安装数百种其他相机应用程序.他们中的任何一个都可以响应您的ACTION_IMAGE_CAPTURE
请求.
There are over 26,000 Android device models. Across them, there are hundreds of different pre-installed camera apps. Additionally, there are hundreds of additional camera apps that users can install from the Play Store or elsewhere. Any one of them could respond to your ACTION_IMAGE_CAPTURE
request.
ACTION_IMAGE_CAPTURE
的协议没有用于不显示任何类型的确认对话框"的选项.某些相机应用程序将具有此类对话框,而另一些则不会.某些应用程序可能还有一些未记录的Intent
额外功能来控制该行为,但大多数应用程序没有.
The protocol for ACTION_IMAGE_CAPTURE
does not have an option for "do not show any sort of confirmation dialog". Some camera apps will have such a dialog, others will not. A few apps might have some undocumented Intent
extra for controlling that behavior, but most will not.
要么:
-
在存在确认提示的情况下使用它,或者
Live with the confirmation prompt, where it exists, or
请勿将此工作委托给第三方应用,而应使用相机API自己拍照(您拒绝的SurfaceView
方法,尽管不一定需要SurfaceView
),或
Do not delegate this work to a third-party app, but instead use the camera APIs to take a picture yourself (the SurfaceView
approach that you rejected, though it does not necessarily need SurfaceView
), or
请勿编写应用
这篇关于Android:拍照意图删除确认对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!