Home | History | Annotate | Download | only in app

Lines Matching defs:NOTIFICATION

19 import android.app.Notification;
48 // Unique Identification Number for the Notification.
49 // We use it on Notification start, and to cancel it.
50 private int NOTIFICATION = R.string.local_service_started;
67 // Display a notification about us starting. We put an icon in the status bar.
81 // Cancel the persistent notification.
82 mNM.cancel(NOTIFICATION);
98 * Show a notification while this service is running.
101 // In this sample, we'll use the same text for the ticker and the expanded notification
105 Notification notification = new Notification(R.drawable.stat_sample, text,
108 // The PendingIntent to launch our activity if the user selects this notification
112 // Set the info for the views that show in the notification panel.
113 notification.setLatestEventInfo(this, getText(R.string.local_service_label),
116 // Send the notification.
117 mNM.notify(NOTIFICATION, notification);