MaterialFilePicker
MaterialFilePicker copied to clipboard
This plugin is not working
I just copied the below snippet and commented path and root path. And it's always showing empty directory as in the image below.
MaterialFilePicker()
.withActivity(this)
.withCloseMenu(true)
//.withPath(alarmsFolder.absolutePath)
//.withRootPath(externalStorage.absolutePath)
.withHiddenFiles(true)
.withFilter(Pattern.compile(".*\\.(jpg|jpeg)$"))
.withFilterDirectories(false)
.withTitle("Sample title")
.withRequestCode(FILE_PICKER_REQUEST_CODE)
.start()
I also tried below but not working
.withPath(Environment.getExternalStorageDirectory().getPath())
.withRootPath(Environment.getExternalStorageDirectory().getPath())

Hello, your android device runs android 10?
In your AndroidManifest.xml file add