I am new in android programming. I need to access all file names in a directory, in Java we can use Files.newDirectoryStream(path) in order to do so, but since android doesn't support this what should I use instead?
Asked
Active
Viewed 124 times
0
-
http://stackoverflow.com/a/4852599/115145 – CommonsWare Apr 07 '17 at 22:01
1 Answers
0
use something along the lines of the following:
File mydir = new File(path);
File[] mydirlist = mydir.listFiles();

MikeT
- 51,415
- 16
- 49
- 68