Java tutorial
//package com.java2s; //License from project: Apache License import java.io.File; import android.text.TextUtils; public class Main { public static boolean createDirectory(String dir) { if (TextUtils.isEmpty(dir)) { return false; } boolean result = true; File file = new File(dir); if (!file.exists()) { result = file.mkdirs(); } return result; } }