Open multiple images in gallery intent

The EXTRA_ALLOW_MULTIPLE option is set on the intent through the Intent.putExtra() method to select multiple images

Multiple Image selection available only for above API 18

intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);

Full intent code is here:

Intent intent = new Intent(); intent.setType("image/*");
intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent,"Select Picture"),1);