Get directory in android java code example
Example: Get directory in android java
File directory;
if (filename.isEmpty()) {
directory = getFilesDir();
}
else {
directory = getDir(filename, MODE_PRIVATE);
}
File[] files = directory.listFiles();