Skip to content

通过相机裁剪图片时返回的resultCode一直为0 #19

Description

@luxiangrong

设备:华硕平板ZenPad8.0 Z380K1 安卓5.0.1

private static Intent buildCropIntent(String action, CropParams params) {
        return new Intent(action)
                .setDataAndType(params.uri, params.type)
                ....
                .putExtra(MediaStore.EXTRA_OUTPUT, params.uri);
    }

应该是此处输入和输出的两个uri使用了相同的值,导致在生成裁剪图片时出错了

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions