Java tutorial
//package com.java2s; //License from project: Open Source License import java.io.File; import android.content.Context; public class Main { public static String getPrivateFilePath(Context context, String yourAppPath) { String PATH = context.getFilesDir().getAbsolutePath() + yourAppPath; File file = new File(PATH); if (!(file.exists() && file.isDirectory())) { file.mkdirs(); } return PATH; } }