Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.content.Context;

import java.io.File;

public class Main {

    private static String getImageCacheDir(Context context) {
        String dir = context.getCacheDir() + "cache" + File.separator;
        File file = new File(dir);
        if (!file.exists())
            file.mkdirs();
        return dir;
    }
}