check File Exist - Android java.io

Android examples for java.io:File

Description

check File Exist

Demo Code

import java.io.File;

public class Main {

  public static boolean checkFileExist(String fileName, String PATH) {

    File file = new File(PATH + fileName);
    if (file.exists()) {
      return true;
    } else/*from  ww  w  . j  a v  a2  s.  c  o m*/
      return false;
  }

}

Related Tutorials