Java tutorial
//package com.java2s; //License from project: Apache License import java.io.File; import android.os.Environment; import android.util.Log; public class Main { public static final String TAG = "AirImagePicker"; public static File getAlbumFolder(String albumName) { File folder = new File(Environment.getExternalStorageDirectory() + File.separator + albumName); if (!folder.exists()) { folder.mkdir(); try { new File(folder, ".yesmedia").createNewFile(); } catch (Exception e) { Log.d(TAG, "[AirImagePickerUtils] exception = " + e.getMessage()); Log.d(TAG, "[AirImagePickerUtils] Exiting didSavePictureInGallery (failed)"); return null; } } return folder; } }