Everything is in the question. Here is my code :
private void createDirectory(File currentDirectory) { File f = null; try { f = new File(current
You have to add this permission:
By the way, not sure how you are getting the SDcard directory... but it must be this way:
File sdDir = Environment.getExternalStorageDirectory();
It's important, because some programmers use to think that the SDCard is always /sdcard, but it could change.