Is there any way in Android to make some action when a certain date is reached ? Something like a listener that is activated when an specific date is reached.
For example, I want to call a method or something when the day is the number 8 or it is 20/12/2012. Does Android provide something like that or I have for example to test every ‘x’ seconds if I have reached the date I wanted ? I think that would waste resources and should be a better way of doing it.
Thank you
The best way is to set an alarm for midnight on the day you are watching for, using
AlarmManager.