Java tutorial
//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); } }