Java tutorial
//package com.java2s; import android.content.Context; import java.io.File; public class Main { private static File locateFile(Context c, String name) { File filesDir = c.getFilesDir(); return new File(filesDir, name); } }