gpt4 book ai didi

由 Intent 启动时缺少 Android 相机设置

转载 作者:行者123 更新时间:2023-11-30 01:47:11 25 4
gpt4 key购买 nike

当我手动启动相机应用程序时,我可以访问白平衡、比例、分辨率等设置(通过屏幕左侧的图标)。但是,当我通过 Intent 启动相机时,这些选项图标不可见:

Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photoFile));
startActivityForResult(intent, MainActivity.SET_CUSTOM_PHOTO_FROM_CAMERA);

有什么方法可以让相机设置在从 intent 启动时可用?

最佳答案

Is there any way to make the camera settings available when the camera is launched from an intent?

对于响应该 Intent 的 Activity,UI 将由该应用程序的作者决定。有数百个预装的相机应用程序,还有无数的应用程序可以从 Play 商店和其他地方下载。他们中的任何一个都可以处理您的请求。

ACTION_IMAGE_CAPTURE 的协议(protocol)中没有任何内容允许您请求更改相机 UI,并且任何地方的书籍上都没有法律强制相机应用程序开发人员遵守它,甚至如果有的话。

关于由 Intent 启动时缺少 Android 相机设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33556569/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com