【问题标题】:photoeditor android sdk display result image along with result image pathphotoeditor android sdk 显示结果图像以及结果图像路径
【发布时间】:2016-10-10 04:43:59
【问题描述】:
public class MainActivity extends Activity implements PermissionRequest.Response{

    public static int CAMERA_PREVIEW_RESULT = 1;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        new CameraPreviewIntent(this)
                .setExportDir(CameraPreviewIntent.Directory.DCIM, "ImgLyExample")
                .setExportPrefix("example_")
                .setEditorIntent(
                        new PhotoEditorIntent(this)
                        .setExportDir(PhotoEditorIntent.Directory.DCIM, "ImgLyExample")
                        .setExportPrefix("result_")
                        .destroySourceAfterSave(true)
                )
                .startActivityForResult(CAMERA_PREVIEW_RESULT);
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, android.content.Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (resultCode == RESULT_OK && requestCode == CAMERA_PREVIEW_RESULT) {
            String path = data.getStringExtra(CameraPreviewActivity.RESULT_IMAGE_PATH);

            Toast.makeText(this, "Image Save on: " + path, Toast.LENGTH_LONG).show();

        }
    }

你好

我想编辑上面的代码,以便在结果中活动显示结果图像以及文件路径,有人可以帮忙解决这个问题,因为我是 android 开发的新手。

这个sdk的github链接是-

https://github.com/imgly/imgly-sdk-android-demo

【问题讨论】:

    标签: android android-studio android-intent imageview


    【解决方案1】:

    v1 SDK 已弃用,请改用 v2。请参阅文档如何集成最新版本。 https://github.com/imgly/imgly-sdk-android-demo

    否则我不确定你真正想要什么。 您能否解释一下您的应用需要如何执行?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-01
      • 2016-01-12
      • 1970-01-01
      • 2014-10-17
      • 1970-01-01
      • 2013-05-29
      • 1970-01-01
      • 2011-05-24
      相关资源
      最近更新 更多