O'Reilly logo

Pro Android 3 by Sayed Y. Hashimi, Dave MacLean, Satya Komatineni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required