I am new to Android programming, I am trying to develop an app which is used to set alarms. As the AlarmManager
will lose all the alarms on system reboot, so I saved all the alarms being created by the user using SharedPreferences
.
I have a main activity, which lists all the alarms. I have an alarm_create
activity which creates the alarms. alarm_receiver
class is called as PendingIntent
when the alarm goes on.
Now even if the alarm_receiver
makes changes in the alarm, it is not reflected in the main_activity
when the application resumes.
For saving the alarm, I have used the concept of queue which would help me retrieving the alarms in loop.
Please help me with the problem.