Java tutorial
//package com.java2s; import android.content.Context; import java.io.File; public class Main { public static File getApplicationFile(Context context, String fileName) { return new File(context.getFilesDir() + File.separator + fileName); } }