Exploring the Alarm Manager
In Android an intent object is used to start a UI activity, a background service, or a broadcast receiver. Normally these intents are triggered by user actions. In Android you can also use alarms to trigger broadcast intents, mind you, only broadcast intents. The invoked broadcast receivers then can choose to start an activity or a service.
In this chapter you will learn about the alarm manager API. Alarm manager API is used to schedule a broadcast intent to go off at a particular time. We will refer to this process of scheduling a broadcast intent at a particular time as setting an alarm.
We will also show you how to schedule alarms that repeat at regular intervals. We will show you how to cancel alarms ...