Java tutorial
//package com.java2s; //License from project: Open Source License import java.io.File; import android.os.Environment; public class Main { public static File getAlbumStorageDir(String theenvironment, String albumName) { // Get the directory for the user's public pictures directory. File file = new File(Environment.getExternalStoragePublicDirectory(theenvironment), albumName); if (!file.mkdirs()) { //Log.e(TAG, "Directory not created"); } return file; } }