get External Files Directory For Pictures - Android android.os

Android examples for android.os:External Storage

Description

get External Files Directory For Pictures

Demo Code

import java.io.File;

import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.os.Environment;

public class Main {

  @TargetApi(Build.VERSION_CODES.FROYO)//from w  w  w. j a v a  2s  . co  m
  public static final File getExternalFilesDirForPictures(Context context) {
    return context.getExternalFilesDir(Environment.DIRECTORY_PICTURES);
  }

}

Related Tutorials