I'm using this method to get SharedPreferences that are programatically set:
public static SharedPreferences getPrefs(final Context context) {
return context.getSharedPreferences(context.getPackageName()
+ "_preferences", Context.MODE_WORLD_READABLE);
}
I'm also using prefs.xml in my PreferenceActivity like that:
addPreferencesFromResource(R.xml.prefs);
I would like to store all of the apps preferences in the same place (preferably: context.getPackageName() + "_preferences") ), how do I do that?