Anytime i change my in-app-settings (with shared preferences) i have to use the back button and go back into the activity for the changes to take effect. I’d like them to take effect immediately. I tried to use
protected void onResume(){
super.onResume();
}
but it doesn’t work. What am i doing wrong? My settings activity is called by menu inflater and finished when i click on the save button.
Here are some things to look out for:
boolean sound = settings.getBoolean();in it. Then simply call this method at the beginning, and after you update the settings.