Java tutorial
//package com.java2s; import java.io.File; import android.content.Context; public class Main { private static File descriptorFromCacheDirectory(Context ctx, String path) { File cacheRoot = ctx.getCacheDir(); return new File(cacheRoot, path); } }