Java tutorial
//package com.java2s; import android.util.Log; import java.io.File; public class Main { public static void makeRootDirectory(String filePath) { File file = null; try { file = new File(filePath); if (!file.exists()) { file.mkdirs(); } } catch (Exception e) { Log.i("error:", e + ""); } } }