I want to create an Alarm for Android.
I've used so far an AlarmManager that sets on the given time and day. And onReceive(), I have a NotificationManager that warns for a specific event.
My problem is that if the event is set for a week or month later, I may restart my device and my alarm will be lost.
Can someone explain me how can I save this alarm and restore it after reboot?