File exists and IS directory, but listFiles() returns null

For those with this problem, add this to AndroidManifest.xml:

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

Problem solved 😀

EDIT: If this does not work just make sure if path is correct

Leave a Comment