The following is the first few sections of a chapter from The Busy Coder's Guide to Android Development, plus headings for the remaining major sections, to give you an idea about the content of the chapter.


Notifications

Pop-up messages. Tray icons and their associated “bubble” messages. Bouncing dock icons. You are no doubt used to programs trying to get your attention, sometimes for good reason.

Your phone also probably chirps at you for more than just incoming calls: low battery, alarm clocks, appointment notifications, incoming text message or email, etc.

Not surprisingly, Android has a whole framework for dealing with these sorts of things, collectively called “notifications”.

Prerequisites

Understanding this chapter requires you to have read the core chapters of the book.

What’s a Notification?

The preview of this section is sleeping in.

Notifications and Channels

The preview of this section was lost in the sofa cushions.

Showing a Simple Notification

The preview of this section was lost due to a rupture in the space-time continuum.

The Activity-Or-Notification Scenario

The preview of this section was traded for a bag of magic beans.

Big (and Rich) Notifications

The preview of this section is off trying to sweet-talk the Khaleesi into providing us with a dragon.

Foreground Services

The preview of this section took that left turn at Albuquerque.

Disabled Notifications

The preview of this section is being chased by zombies.