Java tutorial
//package com.java2s; import java.io.*; import android.util.Log; public class Main { public static boolean createDirIfNotExists(String path) { boolean ret = true; File file = new File(path); if (!file.exists()) { if (!file.mkdirs()) { Log.e("TravellerLog :: ", "Problem creating Image folder"); ret = false; } } return ret; } }