I want the App to Create a Folder in the SD card, when the user presses the button.
I added the Manifest Code:
Here is My Java Code:
public void onClick(View v) {
File path = new File(Environment.getExternalStorageDirectory()+File.separator+"Naya");
if (!path.exists()) {
path.mkdir();
// do something
}
}
No Folder gets Created and it shows "mkdir() is ignored". Thank You.