I want to open several images from the Android gallery using the Intent.EXTRA_ALLOW_MULTIPLE intent filter:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) { final Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("image/*"); intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true); startActivityForResult(Intent.createChooser(intent, "Add images"), SELECT_MULTIPLE_IMAGES); }
But any application that I use (native gallery, QuickPic application), I can only select one image. The test device runs Android 5.1.
How to select multiple images?
android android-intent image-gallery
Hyndrix
source share