I am trying to understand the SharedPreferences of Android. I am a beginner and don\'t know a lot about it.
I have this class I implemented for my app Preferences
You can store default values in string resource:
default_value
and then get it as it follows:
int ResId = context.getResources().getIdentifier(key_name, "string", context.getPackageName())); prefs.getString(key_name,context.getResources().getString(ResId);