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