Java tutorial
//package com.java2s; import android.content.Context; import java.io.File; public class Main { public static String getSplashDir(Context context) { String dir = context.getFilesDir() + "/splash/"; return mkdirs(dir); } 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(); } }