Implementation
Security,User Conformity,User Experience
Private data is kept in a store that is publicly accessible (by other applications).
Reading/writing data is usally done by:
Context.openFileOutput(String name, int mode)
Context.getSharedPreferences(String name, int mode)
Context.openOrCreateDatabase(String name, int mode, SQLiteDatabase.CursorFactory factory)
whereas int mode
will refer to:
Context.MODE_PRIVATE
Context.MODE_WORLD_READABLE
Might indicate not-intended public dataContext.MODE_WORLD_WRITEABLE
Might indicate not-intended public dataContext.MODE_MULTI_PROCESS
Security,User Conformity
For private data use the flag Context.MODE_PRIVATE
.