Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
luxiangrong opened this issue Apr 18, 2016 · 0 comments
Open

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

luxiangrong opened this issue Apr 18, 2016 · 0 comments

Comments

@luxiangrong
Copy link

设备:华硕平板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使用了相同的值,导致在生成裁剪图片时出错了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant