Java tutorial
//package com.java2s; import android.os.Environment; import java.io.File; public class Main { public static String getLogDir() { String dir = getAppDir() + "/Log/"; return mkdirs(dir); } private static String getAppDir() { return Environment.getExternalStorageDirectory() + "/PonyMusic"; } private static String mkdirs(String dir) { File file = new File(dir); if (!file.exists()) { file.mkdirs(); } return dir; } private static boolean exists(String path) { File file = new File(path); return file.exists(); } }