How to create a directory in Android?
问题 Everything is in the question. Here is my code : private void createDirectory(File currentDirectory) { File f = null; try { f = new File(currentDirectory.getCanonicalPath() + "/directory" + count); boolean success = f.mkdir(); if (!success) { Toast.makeText(currentContext, f.getName() + " could not be created", 15).show(); } } catch (IOException ioe) { Toast.makeText(currentContext, f.getName() + " could not be created", 15).show(); } count++; } I am writing a small file manager in Android