Sajed Ng Sajed Ng - 2 months ago 8
Android Question

How to crop image in Android?

I want to pick image from gallery , then crop it by aspect ratio 1:1 , I already tried this :

Crop image in android

It works fine on old Android versions , but not on ask 21+ , is there another solution for this ? Can I pass it to system to use for example Google photos or Snapseed to crop it?

Answer

It works fine on old Android versions

No, it does not. Android does not have a CROP Intent. There is no requirement for any Android device to have an activity that supports the Intent demonstrated in the accepted answer on that question.

is there another solution for this ?

You can use one of the many image cropping libraries that are available for Android.

Comments