Java tutorial
//package com.java2s; //License from project: Apache License import android.os.Environment; import java.io.File; public class Main { public static File getStudentImageDirectory() { File studentImageDirectory = new File(getMultimediaDirectory(), "studentImage"); if (!studentImageDirectory.exists()) { studentImageDirectory.mkdir(); } return studentImageDirectory; } public static File getMultimediaDirectory() { File multimediaDirectory = new File(Environment.getExternalStorageDirectory() + File.separator + "LiteracyApp" + File.separator + "multimedia"); if (!multimediaDirectory.exists()) { multimediaDirectory.mkdirs(); } return multimediaDirectory; } }