Java tutorial
//package com.java2s; import android.content.Context; import java.io.File; public class Main { public static File getLocalPath(Context context) { if (context == null) return null; File tmp = context.getFilesDir(); if (tmp != null) return tmp.getParentFile(); return null; } }