starting from the 18th level of the api level, EXTRA_ALLOW_MULTIPLE can also be set to true, in which case you can send more than one file back to the result. To do this, you need to install it as ClipData:
resultIntent.setClipData(clipData)
Rafal malek
source share