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