Java tutorial
//package com.java2s; import android.content.Context; import java.io.File; public class Main { public static File getFilePath(Context context, String dirname, String filename) { File cascadeDir = context.getDir(dirname, Context.MODE_PRIVATE); return new File(cascadeDir, filename); } }