Unable to select multiple images from Android gallery

1.5k views Asked by At

I am unable to select multiple media from the Android gallery even after using the Intent.EXTRA_ALLOW_MULTIPLE. I can select multiple media from the photos app.

Is there a way that I can do from the gallery app as well?

2

There are 2 answers

1
Shahzadah On

You can't do it using Intent. It is available only from API 18. So What i suggest you use any library for custom gallery.

https://github.com/luminousman/MultipleImagePick
https://github.com/giljulio/android-multiple-image-picker

1
Sanket Kachhela On

I guess Intent.EXTRA_ALLOW_MULTIPLE is from API 18. So you have to do code of manual selection for lower version too. It's better to do it manually for all. For this you can refer here .

One of the good libraries for this.