As I checked in the API description for getSharedPreferences (String, int), the second attribute defines the accessibility mode and can take 0 or MODE_PRIVATE for the default operation MODE_WORLD_READABLE and MODE_WORLD_WRITEABLE for managing permissions.
But there is this small note in the API description:
Note: this class (android.content.SharedPreferences) currently does not support the use of multiple processes. This will be added later.
In addition, in Mark L. Murphyโs book, โThe Beginning of Android 2,โ he mentioned:
(In the end, preferences may be for all applications, but which is not supported at the time of this letter)
I'm so confused! Does this mean that MODE_WORLD_READABLE and MODE_WORLD_WRITEABLE from getSharedPrefrences are there, but DID NOT SUPPORT YET at the last API level ???
Thanks! Migan
android preferences
Migan
source share