iPaulPro / aFileChooser

[DEPRECATED] Android library that provides a file explorer to let users select files on external storage.
Apache License 2.0
1.79k stars 850 forks source link

Displaying Empty Directory in some devices #82

Open shanraisshan opened 7 years ago

shanraisshan commented 7 years ago

When click on Choose a File, a progress bar is shown then Empty Directory message is displayed.

I guess, FileChooserActivity is not properly loading the List of files.

  1. Samsung Galaxy s6 edge (SM-G935FD) Android 6.0.1 (23) MARSHMELLOW
  2. LG Nexus 5 (Nexus 5) Android 6.0 (23) MARSHMELLOW

Empty Directory

shanraisshan commented 7 years ago

The issue was because of the App permissions feature in Android Marshmallow. Since the library is bit out of date and doesn't handle the permissions properly, therefore the storage permission was not granted which was causing this issue.

Android Marshmallow Permission

Turning the permission on, displayed the list. But proper handling of Android Marshmallow permission is required in the library.