Android studio 如何防止AdobeCreativeSDK自动将图像保存到android手机?

Android studio 如何防止AdobeCreativeSDK自动将图像保存到android手机?,android-studio,uri,android-gallery,aviary,adobecreativesdk,Android Studio,Uri,Android Gallery,Aviary,Adobecreativesdk,我这里有一个问题,每当编辑器意图被激活时,sdk会自动将图像保存到库中。在意图范围内完成编辑后再次进行。如何防止此处的自动保存 AdobeImageEditorActivity.class protected void performSave(Bitmap bitmap, Uri saveUri, CompressFormat outputFormat, int quality, boolean hires, AdobeImageEditorActivity.FinalAction action

我这里有一个问题,每当编辑器意图被激活时,sdk会自动将图像保存到库中。在意图范围内完成编辑后再次进行。如何防止此处的自动保存

AdobeImageEditorActivity.class

protected void performSave(Bitmap bitmap, Uri saveUri, CompressFormat outputFormat, int quality, boolean hires, AdobeImageEditorActivity.FinalAction action) {
        logger.info("performSave, uri:%s, quality: %d, action:%s", new Object[]{saveUri, Integer.valueOf(quality), action});
        File destFile;
        if(saveUri != null) {
            destFile = new File(saveUri.getPath());
        } else {
            destFile = this.getDefaultOutputDestination(outputFormat);
        }

        try {
            logger.log("trying to create the new file...");
            if(!destFile.exists() && !destFile.createNewFile()) {
                logger.error("Failed to create the file");
            }
        } catch (IOException var11) {
            var11.printStackTrace();

            try {
                logger.error("using a temporary file!");
                destFile = File.createTempFile("aviary-image-", ".jpeg");
            } catch (IOException var10) {
                var10.printStackTrace();
            }
        }

        LocalDataService service = (LocalDataService)this.getMainController().getService(LocalDataService.class);

        assert service != null;

        service.setDestImageUri(Uri.parse(destFile.getAbsolutePath()));
        AdobeImageEditorActivity.SaveHiResImageTask mSaveTask = new AdobeImageEditorActivity.SaveHiResImageTask(destFile, action, outputFormat, quality, hires);
        mSaveTask.execute(new Bitmap[]{bitmap});
    }
我意识到上面的代码实际上可能正在执行该保存,但是它是一个自动生成的文件,有什么方法可以防止保存发生吗?

使用图像编辑器自动保存 当用户关闭图像编辑器时,Creative SDK图像编辑器保存编辑的图像。不可能阻止这种行为

保存的图像
Uri
通过
onActivityResult()
方法传回应用程序的活动。有关基本演示,请参见

口述编辑图像的保存位置 可以通过使用
withOutput()
方法指定编辑图像的保存位置,并将
文件传递给它

您可以在上看到所有可选方法

请注意,开发人员门户当前声明应将
Uri
传递给
withOutput()
,但这是不正确的。您应该传入一个
文件

    /* 1) Change the argument to your desired location */
    File file = new File(Environment.getExternalStorageDirectory() + File.separator + "test.jpg");
    try {
        file.createNewFile();
    } catch (IOException e) {
        e.printStackTrace();
    }

    Intent imageEditorIntent = new AdobeImageIntent.Builder(this)
            .setData(imageUri)
            .withOutput(file) /* 2) Pass the File here */
            .build();
使用图像编辑器自动保存 当用户关闭图像编辑器时,Creative SDK图像编辑器保存编辑的图像。不可能阻止这种行为

保存的图像
Uri
通过
onActivityResult()
方法传回应用程序的活动。有关基本演示,请参见

口述编辑图像的保存位置 可以通过使用
withOutput()
方法指定编辑图像的保存位置,并将
文件传递给它

您可以在上看到所有可选方法

请注意,开发人员门户当前声明应将
Uri
传递给
withOutput()
,但这是不正确的。您应该传入一个
文件

    /* 1) Change the argument to your desired location */
    File file = new File(Environment.getExternalStorageDirectory() + File.separator + "test.jpg");
    try {
        file.createNewFile();
    } catch (IOException e) {
        e.printStackTrace();
    }

    Intent imageEditorIntent = new AdobeImageIntent.Builder(this)
            .setData(imageUri)
            .withOutput(file) /* 2) Pass the File here */
            .build();