android - Settings don't take effect immediately -


anytime change in-app-settings (with shared preferences) have use button , go activity changes take effect. i'd them take effect immediately. tried use

protected void onresume(){  super.onresume();  } 

but doesn't work. doing wrong? settings activity called menu inflater , finished when click on save button.

here things out for:

  1. you're writing new settings same file 1 being used, , not different one
  2. most people use local variables store settings on run run basis. make sure update of these after changing settings. way have seperate method updateuserchoices(), , have code boolean sound = settings.getboolean(); in it. call method @ beginning, , after update settings.

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -