I use a Java File Objects mkdirs method to create a folder structure on the SD Card
- Code: Select all
File sdcard = Environment.getExternalStorageDirectory();
File dir = new File (sdcard.getAbsolutePath() + "/dir/subdir");
When i run the application the folders are being created. Using a file manager program or the shell i can see them.
Connecting the phone to my pc with sd card access enabled on my phone the folders do not appear
If i create the structure on my pc it appears twice using file managers. Deleting the automatically generated folder leaving the one created by windows leads to java recreating the directories.
Any ideas on that?