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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.