6. 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 Volume II: Advanced Topics, Third Edition, Video Enhanced Edition now with O’Reilly online learning.

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