Lines Matching full:notification
1 page.title=Building a Notification
15 <li><a href="#builder">Create a Notification Builder</a></li>
16 <li><a href="#action">Define the Notification's Action</a></li>
17 <li><a href="#click">Set the Notification's Click Behavior</a></li>
18 <li><a href="#notify">Issue the Notification</a></li>
43 <p>This lesson explains how to create and issue a notification.</p>
51 provide the best notification support for a wide range of platforms. </p>
53 <h2 id="builder">Create a Notification Builder</h2>
55 <p>When creating a notification, specify the UI content and actions with a
79 .setContentTitle("My notification")
83 <h2 id="action">Define the Notification's Action</h2>
87 notification. An action takes users directly from the notification to an
89 event that caused the notification or do further work. Inside a notification, the action itself is
96 android.app.Activity} from a notification, you must preserve the user's expected
97 navigation experience. In the snippet below, clicking the notification opens a
98 new activity that effectively extends the behavior of the notification. In this
105 // Because clicking the notification opens a new ("special") activity, there's
116 <h2 id="click">Set the Notification's Click Behavior</h2>
122 activity when the user clicks the notification text in the notification drawer,
131 <h2 id="notify">Issue the Notification</h2>
133 <p>To issue the notification:</p>
138 notification. When you call {@link android.app.NotificationManager#notify notify()}, specify a notification ID.
139 You can use this ID to update the notification later on. This is described in more detail in
144 returns a {@link android.app.Notification} object containing your
152 // Sets an ID for the notification
157 // Builds the notification and issues it.