private , , getExternalFilesDir() , . , , , .
, :
public File getAlbumStorageDir(Context context, String albumName) {
File file = new File(context.getExternalFilesDir(
Environment.DIRECTORY_PICTURES), albumName);
if (!file.mkdirs()) {
Log.e(LOG_TAG, "Directory not created");
}
return file;
}
, getExternalFilesDir() null. .
, getExternalFilesDir() , , .. , , , , , , - getExternalStoragePublicDirectory().
type . null
: DIRECTORY_MUSIC
, DIRECTORY_PODCASTS
, DIRECTORY_RINGTONES
, DIRECTORY_ALARMS
, DIRECTORY_NOTIFICATIONS
, DIRECTORY_PICTURES
DIRECTORY_MOVIES
.