Java tutorial
//package com.java2s; import android.content.Context; import java.io.File; public class Main { private static File DEFAULT_DIR; public static void init(Context context) { DEFAULT_DIR = context.getExternalFilesDir("ObjectCache"); } }