Is it possible to determine that the folder or file was created by my application on the Android platform?
Thank.
"that the folder or file was created by my application on the Android platform?"
Depends on the situation.
1. If you save files on sdcard under the FAT file system, you will not be able to find out that these are your files. The FAT file system does not support this work, and the android does not write who created these particular files.
2. If you use api to save files in internal fs
(a certain place inside the data section, running ext4)
then nobody will have access to your files and directories except for you. The reason for the android, applications run from unique users, these unique users can create files that only they can read (Linux fs files all contain the index of the user who created them, as well as access rights).
1) Create a file where you will record the path of your created folders.
2) Do the check: if the path of the folder being checked is in the file => true
Source: https://ru.stackoverflow.com/questions/694628/
All Articles