Andy
Andy

Reputation: 5379

SharedPreferences Problem

i am using SharedPreferences in my code that will store last state of my check box. when i focefuly stop my application through setting>> application it dosn't save it's previous state. what is the problem ...

Upvotes: 0

Views: 325

Answers (2)

jmccarthy
jmccarthy

Reputation: 114

Be sure you implement the OnSavedInstanceState function and save all you want to be saved in there.

Upvotes: 0

CaseyB
CaseyB

Reputation: 25060

Are you calling Editor.commit() when you make a change?

Upvotes: 1

Related Questions