Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.Context;

import android.text.TextUtils;
import java.io.File;

public class Main {

    private static boolean isExistDataCache(Context context, String cacheFile) {
        if (context == null || TextUtils.isEmpty(cacheFile)) {
            return false;
        }

        boolean exist = false;
        File data = context.getFileStreamPath(cacheFile);
        if (data.exists())
            exist = true;
        return exist;
    }
}