Notifications
Notifications
UNIT II
Notifications
Notification is a kind of message, alert, or status of an
application (probably running in the background) that is
visible or available in the Android’s UI elements.
This application could be running in the background but
not in use by the user.
The purpose of a notification is to notify the user about
a process that was initiated in the application either by
the user or the system
Notifications could be of various formats and designs
depending upon the developer.
There are 4 types of notifications:
mBuilder.setSmallIcon(R.drawable.notification_icon);
NotificationManager mNotificationManager =
(NotificationManager)
getSystemService(Context.NOTIFICATION_SERVICE);
mNotificationManager.notify(notificationID, mBuilder.build());