Is it possible to determine that the folder or file was created by my application on the Android platform?

Thank.

    2 answers 2

    "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).

    • Need to create shared files. - George Amirov
    • Shared access? Everything that is written on the sdcard is considered common by default :) - Denis Kotlyarov
    • "then no one will have access to your files and directories except you" ... - George Amirov

    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

    • Not a bad idea, thanks. - George Amirov