/development/samples/browseable/ActiveNotifications/ |
D | _index.jd | 12 notifications. To get started, press the "add a notification" button. 13 If you add more than one notification a notification summary will be 14 added. When a notification is being canceled, the count gets updated
|
/development/samples/browseable/FindMyPhone/Wearable/src/com.example.android.wearable.findphone/ |
D | FindPhoneActivity.java | 34 private static Notification.Builder notification; field in FindPhoneActivity 54 notification = new Notification.Builder(this) in onCreate() 67 .notify(FIND_PHONE_NOTIFICATION_ID, notification.build()); in onCreate() 81 notification.setContentText(notificationText); in updateNotification() 83 .notify(FIND_PHONE_NOTIFICATION_ID, notification.build()); in updateNotification()
|
/development/samples/browseable/CustomNotifications/src/com.example.android.customnotifications/ |
D | MainActivity.java | 71 Notification notification = builder.build(); in createNotification() local 76 RemoteViews contentView = new RemoteViews(getPackageName(), R.layout.notification); in createNotification() 88 notification.contentView = contentView; in createNotification() 98 notification.bigContentView = expandedView; in createNotification() 105 nm.notify(0, notification); in createNotification()
|
/development/samples/browseable/ActiveNotifications/src/com.example.android.activenotifications/ |
D | ActiveNotificationsFragment.java | 24 import android.service.notification.StatusBarNotification; 119 final Notification notification = builder.build(); in addNotificationAndUpdateSummaries() local 120 mNotificationManager.notify(getNewNotificationId(), notification); in addNotificationAndUpdateSummaries() local 138 for (StatusBarNotification notification : activeNotifications) { in updateNotificationSummary() 139 if (notification.getId() == NOTIFICATION_GROUP_SUMMARY_ID) { in updateNotificationSummary() 155 final Notification notification = builder.build(); in updateNotificationSummary() local 156 mNotificationManager.notify(NOTIFICATION_GROUP_SUMMARY_ID, notification); in updateNotificationSummary()
|
/development/samples/browseable/Notifications/ |
D | _index.jd | 8 This sample application provides a showcase of available notification styles and 10 companion allows you to select between various notification styles and to see how these 11 notifications are displayed, both in a phone\'s notification shade and on the wearable.
|
/development/samples/browseable/MessagingService/ |
D | _index.jd | 9 NotificationCompat. It also extends the notification with Remote 11 the notification without having to open an app. The same Remote 15 notification.
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/ |
D | MediaNotificationManager.java | 109 Notification notification = createNotification(); in startNotification() local 110 if (notification != null) { in startNotification() 119 mService.startForeground(NOTIFICATION_ID, notification); in startNotification() 201 Notification notification = createNotification(); 202 if (notification != null) { 203 mNotificationManager.notify(NOTIFICATION_ID, notification); 212 Notification notification = createNotification(); 213 if (notification != null) { 214 mNotificationManager.notify(NOTIFICATION_ID, notification);
|
/development/samples/Support4Demos/src/com/example/android/supportv4/media/ |
D | MediaNotificationManager.java | 111 Notification notification = createNotification(); in startNotification() local 112 if (notification != null) { in startNotification() 121 mService.startForeground(NOTIFICATION_ID, notification); in startNotification() 207 Notification notification = createNotification(); 208 if (notification != null) { 209 mNotificationManager.notify(NOTIFICATION_ID, notification); 218 Notification notification = createNotification(); 219 if (notification != null) { 220 mNotificationManager.notify(NOTIFICATION_ID, notification);
|
/development/samples/browseable/ElizaChat/ |
D | _index.jd | 9 … messages with a quick voice response. New messages create a notification with a "Reply" action. 10 … The notification is bridged from phone to wearable, and selecting the "Reply" action on the
|
/development/samples/browseable/Geofencing/ |
D | _index.jd | 9 … Gardens near the Moscone center in San Francisco, a notification silently appears on his/her 10 … wearable with an option to check in. This notification automatically disappears when he/she leaves
|
/development/samples/KeyChainDemo/src/com/example/android/keychain/ |
D | SecureWebServerService.java | 78 Notification notification = new Notification.Builder(this). in createNotification() local 86 startForeground(ONGOING_NOTIFICATION, notification); in createNotification()
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | ForegroundService.java | 87 void startForegroundCompat(int id, Notification notification) { in startForegroundCompat() argument 91 mStartForegroundArgs[1] = notification; in startForegroundCompat() 99 mNM.notify(id, notification); in startForegroundCompat() 188 Notification notification = new Notification.Builder(this) in handleCommand() local 197 startForegroundCompat(R.string.foreground_service_started, notification); in handleCommand()
|
D | LocalService.java | 108 Notification notification = new Notification.Builder(this) in showNotification() local 118 mNM.notify(NOTIFICATION, notification); in showNotification()
|
D | AlarmService_Service.java | 107 Notification notification = new Notification.Builder(this) in showNotification() local 118 mNM.notify(R.string.alarm_service_started, notification); in showNotification()
|
D | NotifyingService.java | 107 Notification notification = new Notification.Builder(this) in showNotification() local 117 mNM.notify(MOOD_NOTIFICATIONS, notification); in showNotification()
|
D | MessengerService.java | 157 Notification notification = new Notification.Builder(this) in showNotification() local 168 mNM.notify(R.string.remote_service_started, notification); in showNotification()
|
/development/samples/browseable/DelayedConfirmation/Wearable/src/com.example.android.wearable.delayedconfirmation/ |
D | MainActivity.java | 101 Notification notification = new Notification.Builder(this) in onTimerSelected() local 106 ((NotificationManager) getSystemService(NOTIFICATION_SERVICE)).notify(0, notification); in onTimerSelected() 115 Notification notification = new Notification.Builder(this) in onTimerFinished() local 120 ((NotificationManager) getSystemService(NOTIFICATION_SERVICE)).notify(0, notification); in onTimerFinished()
|
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/ |
D | RecipeService.java | 90 Notification notification = builder in createNotification() local 94 mNotificationManager.notify(Constants.NOTIFICATION_ID, notification); in createNotification()
|
/development/samples/browseable/BasicNotifications/ |
D | _index.jd | 8 This sample demonstrates how to display events in the system\'s notification bar. The
|
/development/samples/browseable/SkeletonWearableApp/src/com.example.android.google.wearable.app/ |
D | MainActivity.java | 73 Notification notification = new NotificationCompat.Builder(this) in showNotification() local 83 NotificationManagerCompat.from(this).notify(NOTIFICATION_ID, notification); in showNotification()
|
/development/samples/browseable/AgendaData/ |
D | _index.jd | 11 at once via a button on the companion. When deleted using the notification action, a
|
/development/samples/browseable/ElizaChat/src/com.example.android.wearable.elizachat/ |
D | ResponderService.java | 104 Notification notification = builder in showNotification() local 113 NotificationManagerCompat.from(this).notify(0, notification); in showNotification()
|
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/service/ |
D | ListenerService.java | 109 Notification notification = new NotificationCompat.Builder(this) in showNotification() local 123 notificationManager.notify(Constants.WEAR_NOTIFICATION_ID, notification); in showNotification()
|
/development/samples/browseable/BeamLargeFiles/ |
D | _index.jd | 14 will save the file to disk and display a notification that the user can select to open
|
/development/samples/browseable/RecipeAssistant/ |
D | _index.jd | 12 … wearable. On the wearable device, the steps are displayed as a multi-page notification, with one
|