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.
即使在使用Intent.EXTRA_ALLOW_MULTIPLE后,我也无法从Android库中选择多个媒体。我可以从照片应用中选择多种媒体。
Is there a way that I can do from the gallery app as well?
有没有办法我可以从画廊应用程序做?
2 个解决方案
#1
0
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.
你无法使用Intent来做到这一点。它仅适用于API 18.所以我建议您使用任何库来自定义库。
https://github.com/luminousman/MultipleImagePick
https://github.com/giljulio/android-multiple-image-picker
#2
0
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 .
我猜Intent.EXTRA_ALLOW_MULTIPLE来自API 18.所以你必须为较低版本做手动选择代码。最好手动为所有人做。为此你可以参考这里。
One of the good libraries for this.
这是一个很好的库。
#1
0
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.
你无法使用Intent来做到这一点。它仅适用于API 18.所以我建议您使用任何库来自定义库。
https://github.com/luminousman/MultipleImagePick
https://github.com/giljulio/android-multiple-image-picker
#2
0
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 .
我猜Intent.EXTRA_ALLOW_MULTIPLE来自API 18.所以你必须为较低版本做手动选择代码。最好手动为所有人做。为此你可以参考这里。
One of the good libraries for this.
这是一个很好的库。