Java tutorial
//package com.java2s; //License from project: Apache License import java.io.File; import android.os.Environment; import android.util.Log; public class Main { private static final String TAG = "NarUtil"; public static void createNarDirOnSDCard() { File narDir = new File(Environment.getExternalStorageDirectory(), "nar"); if (narDir.exists() && narDir.isDirectory()) return; boolean success = narDir.mkdirs(); if (success == false) Log.d(TAG, "nar folder creation failed"); } }