6. Working with Notifications

Applications often need to communicate with users, even when the applications aren’t actively running. Applications can alert users with text notifications, vibration, blinking lights, and even audio. In this chapter, you will learn how to build different kinds of notifications into your Android applications using modern APIs, while keeping them compatible with devices running Android versions all the way back to API Level 4.

Notifying the User

Applications can use notifications to greatly improve the user’s experience. For example:

Image An email application might notify a user when new messages arrive. A newsreader ...

Get Advanced Android™ Application Development, Fourth Edition now with O’Reilly online learning.

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