Settings

Settings can be stored using

SharedPreferences settings;
settings = PreferenceManager.getDefaultSharedPreferences(context);

This will access settings stored for the context which is typically an Activity! To share settings cross Activities use context.getApplicationContext() instead of context. This will share the data,

settings = PreferenceManager.getDefaultSharedPreferences(context.getApplicationContext());

Lastest update in August 2013, inital post in August 2013

Write a comment

I appreciate comments, suggestions, compliments etc. Unfortunately I have no time to reply to them. Useful input will be used for sure!