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