Added example of SharedPreferences and PreferenceActivity