【问题标题】:How to auto ok when use camera of android?使用android的相机时如何自动确定?
【发布时间】:2025-12-05 04:55:02
【问题描述】:

我有一个问题,是我使用 android 的摄像头调用 MediaStore.ACTION_IMAGE_CAPTURE

Intent cameraIntent = new Intent(
            android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
    filepath = getOutputMediaFile();
    uri = Uri.fromFile(filepath);
    cameraIntent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, uri);
    startActivityForResult(cameraIntent, 0);

当我捕获然后它不自动保存时,我必须单击以保存或不保存,而我只需要保存。

Button save and button not

这不太舒服,那么如何设置自动保存和提前终止这一步呢?

【问题讨论】:

    标签: android image camera save


    【解决方案1】:

    这是相机应用程序的功能。您必须编写自己的代码来使用相机捕获图像。

    【讨论】:

    • 谢谢和抱歉,我想我知道原因,我选择了不同的方式:)
    最近更新 更多