Java tutorial
//package com.java2s; import android.text.TextUtils; import java.io.File; public class Main { public static boolean fileExists(String path) { boolean exists = false; if (!TextUtils.isEmpty(path)) { File file = new File(path); exists = file.exists() && file.isFile(); } return exists; } }