Chapter 15. Exploring the Alarm Manager

In Android, you can use the alarm manager to trigger events. These events can be at a specific time or at regular intervals. We will start the chapter with the basics of the alarm manager where we set a simple alarm. We will then cover setting an alarm that repeats, cancelling an alarm, the role of pending intents (specifically the role their uniqueness plays), and setting multiple alarms. By the end of the chapter, you will have learned both the basics and the practical nitty-gritty of the Android alarm manager.

Alarm Manager Basics: Setting Up a Simple Alarm

We will start the chapter setting an alarm at a particular time and have it call a broadcast receiver. Once the broadcast receiver is invoked, we can ...

Get Pro Android 3 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.