1, Context.mode_private : As the default mode of operation, the file is private data and can only be accessed by the application itself, in which the contents of the original file are overwritten, 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, appends content to the file, or creates a new file.
context.mode_world_readable and the context.mode_world_writeable used to control whether other apps have permission to read and write to the file.
3, Mode_world_readable : Indicates that the current file can be read by another application.
4, Mode_world_writeable : Indicates that the current file can be written by another application.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Four types of enumeration for Android