get Album Storage Directory - Android android.media

Android examples for android.media:Album

Description

get Album Storage Directory

Demo Code

import java.io.File;

import android.os.Environment;

public class Main {

  private static final String ALBUM_NAME = "badger";

  public static File getAlbumStorageDir() {
    return new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES), ALBUM_NAME);
  }/* w  w w . j  ava  2  s.c o m*/

}

Related Tutorials