I want to give to user the option to pick multiple images. This is my code in order to let the user choose the wanted gallery and pick images from there:
public void pickImages() {
Intent intent = new Intent( Intent.ACTION_PICK,
android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
intent.setType("image/*");
intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);
startActivityForResult(Intent.createChooser(intent,"Select Picture"), PICK_IMAGE_MULTIPLE);
}
When I click on the pickImages
button, I can choose between the default gallery, like in this case - Samsung's, or Google Photos, Etc...
When I choose Google Photos gallery, I'm able to pick photos, but on the same device (Samsung Galaxy S6 Edge), after I choose Samsung's gallery, I can't pick even one photo, it's just a display of them, no matter how long I click on a photo, it doesn't change.
When I enter Samsung's gallery from their launcher, the display is different, and I'm able to long press in order to select images.
I have also checked on Xiaomi's default gallery, and it worked, I could pick photos.
How can I change it and open the right gallery display?