Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.io.File;

import android.content.Context;

public class Main {
    public static File getCacheFullFileName(Context context, String filename) {
        File dir = context.getExternalCacheDir();
        File imgDir = new File(dir, "images");
        imgDir.mkdirs();
        return new File(imgDir, filename);
    }
}