ImagePicker icon indicating copy to clipboard operation
ImagePicker copied to clipboard

Gallery Option does not List gallery app

Open build3r opened this issue 4 years ago • 2 comments

Summary

The gallery option list all documents and and shows images recent images. But it does not list the default gallery app or Google photos app which can have different folders for easy selection of picture.

Code to reproduce

The issue is because the Intent is set to open a document I was able to list the gallery apps by use the below intent

        val galleryIntent = Intent(Intent.ACTION_GET_CONTENT)
        galleryIntent.addCategory(Intent.CATEGORY_OPENABLE);
        galleryIntent.addFlags(FLAG_GRANT_READ_URI_PERMISSION);
        galleryIntent.addFlags(FLAG_GRANT_WRITE_URI_PERMISSION);
        galleryIntent.setType("image/*")

Android version

Android 11

Impacted devices

All

build3r avatar Nov 09 '21 13:11 build3r

Why did you close your PR? Did you find another solution?

hubercode avatar Nov 17 '21 15:11 hubercode

The gallery app is very important, without this option I will not use this library. Because as a user of the app I'd be very annoyed

brutalmaths avatar Jan 02 '22 21:01 brutalmaths