So I created a folder in the internal storage like this:
File folder1 = getBaseContext().getDir("DataBase", Context.MODE_PRIVATE); //Creating an internal dir;
Now how to I create a new folder inside that folder1?
I tried this (below), but this creates a file and not a folder. . .
File insideFolder = new File (folder1,"Important Database");
I also tried calling mkdir but it seems like insideFolder is still a file.
new File(folder1, "subdirname").mkdir();If the file was already there due to some previous experiment of yours,
mkdir()will not delete it. You will need to delete it yourself.