20. Working with Notifications

Applications often need to communicate with the user even when the application isn’t actively running. Applications can alert users with text notifications, vibration, blinking lights, and even audio. In this chapter, you learn how to build different kinds of notifications into your Android applications.

Notifying the User

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

• An email application might notify a user when new messages arrive. A news reader application might notify a user when there are new articles to read.

• A game might notify a user when a friend has signed in, or sent an invitation to play, or beat a high score.

• A weather application might notify a user ...

Get Android Wireless Application Development, 2/e 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.