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:
- you're writing new settings same file 1 being used, , not different one
- 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
Post a Comment