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