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