/developers/samples/android/deprecated/wearable/wear/FindMyPhone/Wearable/src/main/java/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()
|
/developers/samples/android/notification/CustomNotifications/Application/src/main/java/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()
|
/developers/samples/android/notification/CustomNotifications/ |
D | README.md | 6 The use of collapsed and expanded notification views are shown. 12 also demonstrates the expanded notification introduced in API level 16. 17 - Create Intent to launch Activity when notification is clicked. 19 - Use NotificationManager's notify to show notification. 22 a notification. Use two-fingered gestures up and down to collapse 23 and expand the notification. 35 <img src="screenshots/main-notification.png" height="400" alt="Screenshot"/> <img src="screenshots/…
|
/developers/samples/android/notification/ActiveNotifications/Application/src/main/java/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()
|
/developers/samples/android/notification/NotificationChannels/kotlinApp/ |
D | README.md | 6 notification preferences. 11 Android O introduces notification channels to provide a unified system to help users 13 notification channels to display notifications to your users. 15 You can create a notification channel for each distinct type of notification you need 16 to send. You can also create notification channels to reflect choices made by users of 17 your app. For example, you might setup separate notification channels for each 21 can then use `[Notification.Builder.setChannel()][2]` to assign your notification to that 25 consistent system UI. All notifications posted to a notification channel behave the
|
/developers/samples/android/ |
D | build.gradle | 26 "notification/BasicNotifications", 27 "notification/CustomNotifications", 64 "notification/LNotifications", 65 "notification/MessagingService", 105 "notification/ActiveNotifications", 125 "notification/NotificationChannels",
|
/developers/samples/android/wearable/wear/WearNotifications/Application/src/main/java/com/example/android/wearable/wear/wearnotifications/handlers/ |
D | BigTextIntentService.java | 100 Notification notification; in handleActionSnooze() local 101 notification = notificationCompatBuilder.build(); in handleActionSnooze() 104 if (notification != null) { in handleActionSnooze() 115 notificationManagerCompat.notify(MainActivity.NOTIFICATION_ID, notification); in handleActionSnooze()
|
D | MessagingIntentService.java | 110 Notification notification = notificationCompatBuilder.build(); in handleActionReply() local 113 notification); in handleActionReply() 120 notification = notificationCompatBuilder.setStyle(messagingStyle).build(); in handleActionReply() 125 notificationManagerCompat.notify(MainActivity.NOTIFICATION_ID, notification); in handleActionReply()
|
/developers/samples/android/wearable/wear/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/ |
D | MessagingIntentService.java | 101 Notification notification = notificationCompatBuilder.build(); in handleActionReply() local 104 notification); in handleActionReply() 111 notification = notificationCompatBuilder.setStyle(messagingStyle).build(); in handleActionReply() 116 notificationManagerCompat.notify(NotificationsActivity.NOTIFICATION_ID, notification); in handleActionReply()
|
/developers/samples/android/wearable/wear/WearNotifications/Wearable/src/main/java/com/example/android/wearable/wear/wearnotifications/handlers/ |
D | BigTextIntentService.java | 101 Notification notification; in handleActionSnooze() local 102 notification = notificationCompatBuilder.build(); in handleActionSnooze() 105 if (notification != null) { in handleActionSnooze() 116 notificationManagerCompat.notify(StandaloneMainActivity.NOTIFICATION_ID, notification); in handleActionSnooze()
|
D | MessagingIntentService.java | 107 Notification notification = notificationCompatBuilder.build(); in handleActionReply() local 110 notification); in handleActionReply() 117 notification = notificationCompatBuilder.setStyle(messagingStyle).build(); in handleActionReply() 122 notificationManagerCompat.notify(StandaloneMainActivity.NOTIFICATION_ID, notification); in handleActionReply()
|
/developers/samples/android/deprecated/wearable/wear/DelayedConfirmation/Wearable/src/main/java/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()
|
/developers/samples/android/notification/NotificationChannels/kotlinApp/Application/src/main/java/com/example/android/notificationchannels/ |
D | NotificationHelper.kt | 99 fun notify(id: Int, notification: Notification.Builder) { in notify() 100 manager.notify(id, notification.build()) in notify()
|
/developers/samples/android/notification/MessagingService/ |
D | README.md | 6 NotificationCompat. It also extends the notification with Remote 8 the notification without having to open an App. The same Remote 10 when the notification is presented there. 12 notification. 36 <uses name="notification"/>
|
/developers/samples/android/notification/NotificationChannels/Application/src/main/java/com/example/android/notificationchannels/ |
D | NotificationHelper.java | 94 public void notify(int id, Notification.Builder notification) { in notify() argument 95 getManager().notify(id, notification.build()); in notify()
|
/developers/samples/android/wearable/wear/WearNotifications/Application/src/main/java/com/example/android/wearable/wear/wearnotifications/ |
D | MainActivity.java | 298 Notification notification = notificationCompatBuilder in generateBigTextStyleNotification() local 338 mNotificationManagerCompat.notify(NOTIFICATION_ID, notification); in generateBigTextStyleNotification() 510 Notification notification = notificationCompatBuilder.build(); in generateBigPictureStyleNotification() local 512 mNotificationManagerCompat.notify(NOTIFICATION_ID, notification); in generateBigPictureStyleNotification() 649 Notification notification = notificationCompatBuilder.build(); in generateInboxStyleNotification() local 651 mNotificationManagerCompat.notify(NOTIFICATION_ID, notification); in generateInboxStyleNotification() 845 Notification notification = notificationCompatBuilder.build(); in generateMessagingStyleNotification() local 846 mNotificationManagerCompat.notify(NOTIFICATION_ID, notification); in generateMessagingStyleNotification()
|
/developers/samples/android/wearable/wear/WearNotifications/Wearable/src/main/java/com/example/android/wearable/wear/wearnotifications/ |
D | StandaloneMainActivity.java | 342 Notification notification = notificationCompatBuilder.build(); in generateBigTextStyleNotification() local 344 mNotificationManagerCompat.notify(NOTIFICATION_ID, notification); in generateBigTextStyleNotification() 496 Notification notification = notificationCompatBuilder.build(); in generateBigPictureStyleNotification() local 497 mNotificationManagerCompat.notify(NOTIFICATION_ID, notification); in generateBigPictureStyleNotification() 599 Notification notification = notificationCompatBuilder.build(); in generateInboxStyleNotification() local 600 mNotificationManagerCompat.notify(NOTIFICATION_ID, notification); in generateInboxStyleNotification() 772 Notification notification = notificationCompatBuilder.build(); in generateMessagingStyleNotification() local 773 mNotificationManagerCompat.notify(NOTIFICATION_ID, notification); in generateMessagingStyleNotification()
|
/developers/samples/android/deprecated/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
D | RecipeService.java | 90 Notification notification = builder in createNotification() local 94 mNotificationManager.notify(Constants.NOTIFICATION_ID, notification); in createNotification()
|
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediasession/service/ |
D | MusicService.java | 257 Notification notification = in moveServiceToStartedState() local 268 startForeground(MediaNotificationManager.NOTIFICATION_ID, notification); in moveServiceToStartedState() 273 Notification notification = in updateNotificationForPause() local 277 .notify(MediaNotificationManager.NOTIFICATION_ID, notification); in updateNotificationForPause()
|
/developers/samples/android/experimental/markgoldstein/ |
D | snippets1.java | 12 The channel ID of the notification.
|
/developers/samples/android/notification/BasicNotifications/ |
D | README.md | 5 A basic app showing how to display events in the system's notification bar using 34 To issue the notification, call notify() method in the [NotificationManager][8]. 35 The code snippet will immediately display the notification icon in the 36 notification bar.
|
/developers/samples/android/deprecated/wearable/wear/SkeletonWearableApp/Wearable/src/main/java/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()
|
/developers/samples/android/notification/LNotifications/ |
D | README.md | 16 the notification bar is closed, and provides users to silence low-priority notifications 21 Specifically, this sample demonstrates how to generate a heads-up notification 24 for a notification (`OtherMetadataFragment`).
|
/developers/samples/android/wearable/wear/XYZTouristAttractions/Wearable/src/main/java/com/example/android/xyztouristattractions/service/ |
D | ListenerService.java | 110 Notification notification = new NotificationCompat.Builder(this) in showNotification() local 124 notificationManager.notify(Constants.WEAR_NOTIFICATION_ID, notification); in showNotification()
|
/developers/samples/android/deprecated/wearable/wear/ElizaChat/Application/src/main/java/com/example/android/wearable/elizachat/ |
D | ResponderService.java | 104 Notification notification = builder in showNotification() local 113 NotificationManagerCompat.from(this).notify(0, notification); in showNotification()
|