I am trying to add multi select image feature in my android app. This is how I am trying to do it
val gallery = Intent( Intent.ACTION_PICK, MediaStore.Images.Media.INTERNAL_CONTENT_URI )
gallery.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);
startActivityForResult(gallery, ACTION_REQUEST_GALLERY)
In emulator with OS version 9, 10 it works perfectly fine. But when I test it on Oppo F5 with OS version 7.1.1 then it doesnt work.
But if I add gallery.setAction(Intent.ACTION_GET_CONTENT)
then I can select multiple images on all devices but problem is that this method show images in very weird way and its not that much user friendly.
Any help will be highly apprecited, thanks