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

剪裁失败 #2

Open
JcmeLs opened this issue Dec 15, 2016 · 0 comments
Open

剪裁失败 #2

JcmeLs opened this issue Dec 15, 2016 · 0 comments

Comments

@JcmeLs
Copy link

JcmeLs commented Dec 15, 2016

PicCrop.cropAvatarFromGallery(MainActivity.this);

    @Override
    protected void onActivityResult(int requestCode, int resultCode, final Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        PicCrop.onActivityResult(requestCode, resultCode, data, MainActivity.this, new PicCrop.CropHandler() {
            @Override
            public void handleCropResult(Uri uri, int tag) {
                Log.d("MainActivity", "成功");
            }

            @Override
            public void handleCropError(Intent data) {
                Log.d("MainActivity", "失败");
            }
        });
    }

这样调用发现一直都是log失败那条语句,不知道哪里出问题了

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