adityak368 / Android-FileBrowser-FilePicker

A FileBrowser / FileChooser / FolderChooser for Android that you can integrate to your app to browse/select files from internal/external storage
MIT License
169 stars 46 forks source link

Not show any file and folder in android 10 #21

Open MMohamad70 opened 4 years ago

MMohamad70 commented 4 years ago

the library working on my application before android 10, but after updating to android 10, the file browser doesn't show any folder or files! Storage permission is granted but nothing is shown in the chooser!

gbelisario commented 4 years ago

I'm having the same issue

gbelisario commented 4 years ago

@MMohamad70 I was reading about the changes in Android 10 and found out that you can "fix" this using requestLegacyExternalStorage in the AndroidManifest. This is a workaround, I think the library should be updated to work with Android 10 without this...

<application
       android:requestLegacyExternalStorage="true"
       ....
</application>
MMohamad70 commented 4 years ago

@gbelisario thanks for sharing, it works now.