Java tutorial
//package com.java2s; //License from project: Creative Commons License import java.io.File; import android.content.Context; public class Main { public static String getExternalFullPath(Context context, String fileName) { File dir = context.getExternalFilesDir(null); if (dir == null) { return null; } return dir.getAbsolutePath() + "/" + fileName; } }