I have a little problem creating folders for my application in internal memory. I use this piece of code:
public static void createFoldersInInternalStorage(Context context){ try { File usersFolder = context.getDir("users", Context.MODE_PRIVATE); File fileWithinMyDir = new File(usersFolder, "users.txt");
This creates folders, but before their name begins "app_" : app_users , app_data , app_public . Is there any way to create folders with the name given by me? And another question: I want to first create the Documents folder and all the other "Data, Public, Users" folders on it .... And the last question: how can I specify the correct path to the folder if I want to create a file in Documents/Users/myfile.txt in internal memory?
Thanks in advance!
source share