I've been looking around google and stack overflow for answers to this question. Why can't I create a folder in the DCIM directory with the correct permissions in my android manifest file... Here's the code, hopefully someone can help me.
final File f = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM) + File.separator + "mycustomdirectory");
if (!f.exists()) {
Log.d("folder", "Folder doesn't exist, creating it...");
boolean rv = f.mkdir();
Log.d("folder", "Folder creation " + ( rv ? "success" : "failed"));
} else {
Log.d("folder", "Folder already exists.");
}
Found this code on stackoverflow....