Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;
    }
}