Four enumeration types for android
1. Context. MODE_PRIVATE: the default operation mode. This mode indicates that the file is private data and can only be accessed by the application itself. In this mode, the written content will overwrite the content of the original file, if you want to append the newly written content to the original file. You can use Context. MODE_APPEND.
2. Context. MODE_APPEND: the mode checks whether the file exists and appends the content to the file. Otherwise, a new file is created.
Context. MODE_WORLD_READABLE and Context. MODE_WORLD_WRITEABLE are used to control whether other applications have the permission to read and write the file.
3. MODE_WORLD_READABLE: indicates that the current file can be read by other applications.
4. MODE_WORLD_WRITEABLE: indicates that the current file can be written by other applications.