Home | History | Annotate | Download | only in com.example.android.wearable.findphone

Lines Matching full:notification

20 import android.app.Notification;
21 import android.app.Notification.Action;
35 private static Notification.Builder notification;
41 // Create a notification with an action to toggle an alarm on the phone.
52 // Use a spannable string for the notification title to resize it.
55 notification = new Notification.Builder(this)
61 .extend(new Notification.WearableExtender()
66 .setPriority(Notification.PRIORITY_MAX);
68 .notify(FIND_PHONE_NOTIFICATION_ID, notification.build());
74 * Updates the text on the wearable notification. This is used so the notification reflects the
76 * notification text indicates that the user can tap it to turn it off, and vice-versa.
79 * @param notificationText The new text to display on the wearable notification.
82 notification.setContentText(notificationText);
84 .notify(FIND_PHONE_NOTIFICATION_ID, notification.build());