Java tutorial
//package com.java2s; import java.io.File; import android.content.Context; import android.os.Environment; public class Main { public static final String MEDIA_PUBLIC_FOLDER_NAME = "AR.Drone"; public static File getMediaCopyFolder(Context context) { File mediaCopyFolder = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM), MEDIA_PUBLIC_FOLDER_NAME); if (mediaCopyFolder.exists()) { // Log.d(TAG, "Media folder exist: " + mediaCopyFolder); } else { mediaCopyFolder.mkdirs(); // Log.d(TAG, "Media folder created: " + mediaCopyFolder); } return mediaCopyFolder; } }