/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/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/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 144 final Notification notification = builder.build(); in updateNotificationSummary() local 145 mNotificationManager.notify(NOTIFICATION_GROUP_SUMMARY_ID, notification); in updateNotificationSummary() 187 for (StatusBarNotification notification : activeNotifications) { in getNumberOfNotifications() 188 if (notification.getId() == NOTIFICATION_GROUP_SUMMARY_ID) { in getNumberOfNotifications()
|
/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/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/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/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/browseable/WearNotifications/Application/src/com.example.android.wearable.wear.wearnotifications/handlers/ |
D | BigTextIntentService.java | 98 Notification notification; in handleActionSnooze() local 99 notification = notificationCompatBuilder.build(); in handleActionSnooze() 102 if (notification != null) { in handleActionSnooze() 113 notificationManagerCompat.notify(MainActivity.NOTIFICATION_ID, notification); in handleActionSnooze()
|
D | MessagingIntentService.java | 109 Notification notification = notificationCompatBuilder.build(); in handleActionReply() local 112 .extractMessagingStyleFromNotification(notification); in handleActionReply() 118 notification = notificationCompatBuilder in handleActionReply() 125 notificationManagerCompat.notify(MainActivity.NOTIFICATION_ID, notification); in handleActionReply()
|
/development/samples/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/handlers/ |
D | BigTextIntentService.java | 99 Notification notification; in handleActionSnooze() local 100 notification = notificationCompatBuilder.build(); in handleActionSnooze() 103 if (notification != null) { in handleActionSnooze() 114 notificationManagerCompat.notify(StandaloneMainActivity.NOTIFICATION_ID, notification); in handleActionSnooze()
|
D | MessagingIntentService.java | 107 Notification notification = notificationCompatBuilder.build(); in handleActionReply() local 110 .extractMessagingStyleFromNotification(notification); in handleActionReply() 116 notification = notificationCompatBuilder in handleActionReply() 123 notificationManagerCompat.notify(StandaloneMainActivity.NOTIFICATION_ID, notification); in handleActionReply()
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | LocalService.java | 108 Notification notification = new Notification.Builder(this) in showNotification() local 118 mNM.notify(NOTIFICATION, notification); in showNotification()
|
D | NotificationBackgroundService.java | 77 Notification notification = new Notification.Builder(this) in showNotification() local 88 mNM.notify(R.layout.notification_background_service, 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 | 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 | 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/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/ |
D | StandaloneMainActivity.java | 309 Notification notification = notificationCompatBuilder.build(); in generateBigTextStyleNotification() local 311 mNotificationManagerCompat.notify(NOTIFICATION_ID, notification); in generateBigTextStyleNotification() 451 Notification notification = notificationCompatBuilder.build(); in generateBigPictureStyleNotification() local 452 mNotificationManagerCompat.notify(NOTIFICATION_ID, notification); in generateBigPictureStyleNotification() 542 Notification notification = notificationCompatBuilder.build(); in generateInboxStyleNotification() local 543 mNotificationManagerCompat.notify(NOTIFICATION_ID, notification); in generateInboxStyleNotification() 713 Notification notification = notificationCompatBuilder.build(); in generateMessagingStyleNotification() local 714 mNotificationManagerCompat.notify(NOTIFICATION_ID, notification); in generateMessagingStyleNotification()
|
/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/WearNotifications/Application/src/com.example.android.wearable.wear.wearnotifications/ |
D | MainActivity.java | 287 Notification notification = notificationCompatBuilder in generateBigTextStyleNotification() local 321 mNotificationManagerCompat.notify(NOTIFICATION_ID, notification); in generateBigTextStyleNotification() 483 Notification notification = notificationCompatBuilder.build(); in generateBigPictureStyleNotification() local 485 mNotificationManagerCompat.notify(NOTIFICATION_ID, notification); in generateBigPictureStyleNotification() 612 Notification notification = notificationCompatBuilder.build(); in generateInboxStyleNotification() local 614 mNotificationManagerCompat.notify(NOTIFICATION_ID, notification); in generateInboxStyleNotification() 807 Notification notification = notificationCompatBuilder.build(); in generateMessagingStyleNotification() local 808 mNotificationManagerCompat.notify(NOTIFICATION_ID, notification); in generateMessagingStyleNotification()
|
/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/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()
|