My current code uses:
String DirectoryPath = "/storage/emulated/0";
File f = new File(DirectoryPath);
File[] file = f.listFiles();
The problem is that the array comes up as blank for anything outside:
/storage/emulated/0/Android/data/com.example.myProgram
From what I read online this no longer works with android 10+. So how would I list all files in a certain directory? (Making a file explorer as part of an App)