Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

private mode #20

Closed
mrmoses opened this issue Feb 12, 2015 · 1 comment
Closed

private mode #20

mrmoses opened this issue Feb 12, 2015 · 1 comment

Comments

@mrmoses
Copy link

mrmoses commented Feb 12, 2015

It would be nice to be able to set the preference file as private.

For Android:
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(cordova.getActivity(), Context.MODE_PRIVATE);

Not sure if or how other systems offer private mode.

@apla
Copy link
Owner

apla commented Mar 12, 2015

Operating mode. Use 0 or MODE_PRIVATE for the default operation, MODE_WORLD_READABLE and MODE_WORLD_WRITEABLE to control permissions. The bit MODE_MULTI_PROCESS can also be used if multiple processes are mutating the same SharedPreferences file. MODE_MULTI_PROCESS is always on in apps targeting Gingerbread (Android 2.3) and below, and off by default in later versions.

from here

@apla apla closed this as completed Mar 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants