Home | History | Annotate | Download | only in com.example.android.activenotifications

Lines Matching refs:notification

18 import android.app.Notification;
24 import android.service.notification.StatusBarNotification;
56 // Every notification needs a unique ID otherwise the previous one would be overwritten. This
96 // Create a PendingIntent to be fired upon deletion of a Notification.
104 * Adds a new {@link Notification} with sample data and sends it to the system.
106 * creates a notification summary if more than one notification exists.
110 // Create a Notification and notify the system.
119 final Notification notification = builder.build();
120 mNotificationManager.notify(getNewNotificationId(), notification);
122 Log.i(TAG, "Add a notification");
129 * Adds/updates/removes the notification summary as necessary.
135 // Add/update the notification summary.
144 final Notification notification = builder.build();
145 mNotificationManager.notify(NOTIFICATION_GROUP_SUMMARY_ID, notification);
147 // Remove the notification summary.
164 * Retrieves a unique notification ID.
171 // the content of the notification.
185 // Since the notifications might include a summary notification remove it from the count if
187 for (StatusBarNotification notification : activeNotifications) {
188 if (notification.getId() == NOTIFICATION_GROUP_SUMMARY_ID) {