Android Tutorial

(avery) #1

By : Ketan Bhimani


412 

do”) simply to notify the user that his picture has been uploaded to
a website or that new content has been downloaded.

The Android platform provides a number of different ways of
notifying the user. Notifications are often displayed on the status
bar at the top of the screen. Notifications may involve

 Textual information
 Graphical indicators
 Sound indicators
 Vibration of the device
 Control over the indicator light

Notifying with the Status Bar

The standard location for displaying notifications and indicators on
an Android device is the status bar that runs along the top of the
screen. Typically, the status bar shows information such as the
current date and time. It also displays notifications (like incoming
SMS messages) as they arrive—in short form along the bar and in
full if the user pulls down the status bar to see the notification list.
The user can clear the notifications by pulling down the status bar
and hitting the Clear button.

Developers can enhance their applications by using notifications
from their applications to inform the user of important events. For
example, an application might want to send a simple notification to
the user whenever new content has been downloaded. A simple
notification has a number of important components:

 An icon (appears on status bar and full notification)
 Ticker text (appears on status bar)
 Notification title text (appears in full notification)
 Notification body text (appears in full notification)
Free download pdf