public static boolean testFileExists(String name){
  boolean status;
  if ((testSaveLocationExists()) && (!name.equals(""))) {
    File path=Environment.getExternalStorageDirectory();
    File newPath=constructFilePaths(path.toString(),name);
    status=newPath.exists();
  }
 else {
    status=false;
  }
  return status;
}

public static boolean testFileExists ( String name ) { boolean status ; if ( ( testSaveLocationExists ( ) ) && ( ! name . equals ( "" ) ) ) { File path = Environment . getExternalStorageDirectory ( ) ; File newPath = constructFilePaths ( path . toString ( ) , name ) ; status = newPath . exists ( ) ; } else { status = false ; } return status ; }
determine if a file or directory exists .
