O'Reilly logo

Android App Development For Dummies, 3rd Edition by Michael Burton

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 14

Reminding the User

In This Chapter

arrow Understanding scheduled tasks

arrow Planning permissions

arrow Setting up alarms

arrow Using notifications

arrow Seeing how device reboots affect alarms

Many tasks need to happen daily, right? Wake up, take a shower, eat breakfast — we do all these things every day. These tasks make up the standard Monday‐through‐Friday morning routine for many people. You may have an internal clock and awaken every day on time, but most people have to set alarms to wake up on time. At work, employees have calendars that remind them of upcoming events they need to attend, such as meetings and important server upgrades. Reminders and alarms are part of most everyday routines, and people rely on them in one way or another.

Building your own scheduled task system from scratch would be a pain. Thankfully, Windows has scheduled tasks, Linux has cron, and Android has the AlarmManager class. Though Android is based on Linux, it doesn’t have access to cron; therefore, you have to set ...

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