Get all files from external storage (including Downloads folder) on Android 10+

782 views Asked by At

I'm trying to get all files from external storage. The problem is with the Downloads folder. MediaStore.Downloads returns only files that were created by my app.

I found this article: https://developer.android.com/training/data-storage/manage-all-files that in theory should help solve my issue. But I can't get that permission on my Android 10 device. It says "Activity not found."

Should I use something else (not MediaStore API) to get all files? I need to get names, sizes, and other info so I can't use the Storage Access Framework.

0

There are 0 answers