private static boolean fileExists(String filePath){
  File file=new File(filePath);
  return file.exists();
}

private static boolean fileExists ( String filePath ) { File file = new File ( filePath ) ; return file . exists ( ) ; }
check if a file exists on device
