Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Get directory in android java

File directory;
if (filename.isEmpty()) {
    directory = getFilesDir();
}
else {
    directory = getDir(filename, MODE_PRIVATE);
}
File[] files = directory.listFiles();
Source by www.androidauthority.com #
 
PREVIOUS NEXT
Tagged: #Get #directory #android #java
ADD COMMENT
Topic
Name
9+2 =