Here you can find the source of getExternalCacheDir(Context context)
public static File getExternalCacheDir(Context context)
//package com.java2s; import java.io.File; import android.content.Context; import android.os.Environment; public class Main { public static File getExternalCacheDir(Context context) { final String cacheDir = "/Android/data/" + context.getPackageName() + "/cache/"; return new File(Environment.getExternalStorageDirectory().getPath() + cacheDir);// w ww . j a v a 2 s . co m } }