0

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?

Community
  • 1
  • 1
Sajed Ng
  • 107
  • 1
  • 7

1 Answers1

1

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.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491