get Album Storage Directory - Android Hardware

Android examples for Hardware:SD Card

Description

get Album Storage Directory

Demo Code


//package com.java2s;
import java.io.File;

import android.os.Environment;

public class Main {
    private static final String CAMERA_DIR = "/dcim/";

    static private File getAlbumStorageDir(String albumName) {
        return new File(Environment.getExternalStorageDirectory()
                + CAMERA_DIR + albumName);
    }/* w ww. j  a v a2  s  .  c  o m*/
}

Related Tutorials