Answers for "android studio file exist"

1

android studio file exist

File dir = getFilesDir();
File file = new File(dir, filename);
if(filename.exists()){      
//Do something
}else{
// Do something else.
}
Posted by: Guest on October-17-2020
0

android studio file exist

File file = new File(filePath);
if(file.exists()){      
//Do something
}else{
// Do something else.
}
Posted by: Guest on October-17-2020

Code answers related to "android studio file exist"

Browse Popular Code Answers by Language