Java tutorial
//package com.java2s; import android.content.Context; import java.io.File; public class Main { public static File externalFilesDir(Context c) { File f = c.getExternalFilesDir((String) null); if (f == null || !f.exists()) { f = c.getFilesDir(); } return f; } }