Android, folder deleted after some time
问题 My app is creating a folder and then an xml file on the sdcard. But after some time the folder is deleted and the file with it. The file is used to store a backup of the data from the app. I dont need something new to make backup but a description of why it happens. The folder is created in the root of the sdcard with the name 'backup'. This is how I create the folder and file: File path = new File(Environment.getExternalStorageDirectory() + "/backup/tet/"); path.mkdirs(); File backupdir =