Java tutorial
//package com.java2s; import java.io.File; import android.content.Context; import android.os.Environment; public class Main { public static File getStoragePath(Context ctx, String directory) { return new File(Environment.getExternalStorageDirectory(), ctx.getPackageName() + "/" + directory); } }