Using Notifications from a Receiver

Broadcast receivers often need to communicate to the user about something that happened or a status. This is usually done by alerting the user through a notification icon in the systemwide notification bar. We will show you, in this section, how to create a notification from a broadcast receiver, send it, and view it through the notification manager.

Monitoring Notifications Through the Notification Manager

Android shows icons of notifications as alerts in the notification area. The notification area is located at the top of device in a strip that looks like Figure 19–2. The look and placement of the notification area may change based on whether the device is a tablet or a phone and may at times also change ...

Get Pro Android 4 now with O’Reilly online learning.

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