In my android application I have a listview with a bunch of items with checkboxes. If the checkboxes are checked, a value is calculated. However, after the application is terminated, the listview resets itself, with all checkboxes being unticked again. How would I have it so when the application is completely terminated, the checkboxes checked/unchecked states are saved? I’ve looked up various methods but all seem rather complicated for a beginner 🙁
Share
You would probably want to try SharedPreferences
Also, there is a APIDemo of using
SharedPreferenceshere: APIDemo