uCrop icon indicating copy to clipboard operation
uCrop copied to clipboard

startActivityResult() is deprecated.

Open abhishek-1-simform opened this issue 3 years ago • 4 comments

You are using startActivityForResult() for perform crop but now it is deprecated. Can you update it with new Activity Results API.

abhishek-1-simform avatar May 04 '21 08:05 abhishek-1-simform

Same Issues>>>

rroohit avatar May 14 '21 09:05 rroohit

Hi, I was struggling with the same issue and I think the Ucrop project isn't being supported anymore (I really hope I'm wrong). Until the next update you can use the "getIntent()" method as I did:

Intent ucropIntent = UCrop.of(sourceUri, destinationUri) .withOptions(cropOptions).getIntent(this); ucropActivityResultLauncher.launch(ucropIntent);

Hope it helps :). Ron.

IRonMaxTech avatar May 22 '21 14:05 IRonMaxTech

@IRonMaxTech not all heroes wear capes indeed. Thank you sir!

garrygk avatar Jul 18 '21 20:07 garrygk

I have provided complete code with request and its usage, Happy coding.

https://github.com/Yalantis/uCrop/issues/765#issuecomment-896586649

muhammad-hamza-shahid avatar Aug 11 '21 07:08 muhammad-hamza-shahid