My sharedpreferences doesn’t get saved for example, a checkbox that is checked if my phone battery is taken out suddenly all of a sudden. Any idea how to get around this problem?
My sharedpreferences doesn’t get saved for example, a checkbox that is checked if my
Share
No events are called when the battery is pulled or there is an unexpected shutdown. The only way to get around this would be to save the preferences every time you change a preference.
For example, your
CheckBox:You will have to make similar changes for all other preference settings.