I am new to Android. I have a simple_list_item_checked list in my application which gives a list of time(clock time). The user selects a time and an alarm will be triggered at that particular time with a dialog box to cancel or snooze the alarm.I am able to store the checked item in this list when the activity is in onPause state. But when the user quits the application and starts a fresh one, I wanted to retain the checked state of the items which the user has already selected when he was using the app last time. Please help me with the concept. Would be great if you include some codes in your answer. If your answer is shared preference, please help me with some codes as in where should I set my preference and where should I get my preference. This is the last part of the app that is pending with me. Thanks in Advance !
I apologize for the pedantic tone I used in the comment above. What I meant is that if someone gives you the solution for your specific problem it will only help you for that problem. Next time you encounter something similar you will need to ask for help again.
If you really want to understand the hints that @Simon gave you, take a look at the Activity Lifecycle and figure out how you can save and restore data using the savedInstanceState
bundle or the SharedPreferences.