• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1page.title=Notifying the User
2page.tags=notifications
3helpoutsWidget=true
4
5trainingnavtop=true
6startpage=true
7
8
9@jd:body
10<div id="tb-wrapper">
11<div id="tb">
12
13<!-- Required platform, tools, add-ons, devices, knowledge, etc. -->
14<h2>Dependencies and prerequisites</h2>
15
16<ul>
17  <li>Android 1.6 (API Level 4) or higher</li>
18</ul>
19<h2>You should also read</h2>
20<ul>
21    <li>
22        <a href="{@docRoot}guide/topics/ui/notifiers/notifications.html">Notifications</a> API Guide
23    </li>
24    <li>
25        <a href="{@docRoot}guide/components/intents-filters.html">
26        Intents and Intent Filters
27        </a>
28    </li>
29    <li>
30        <a href="{@docRoot}design/patterns/notifications.html">Notifications</a> Design Guide
31    </li>
32</ul>
33
34<h2>Try it out</h2>
35
36<div class="download-box">
37  <a href="{@docRoot}shareables/training/NotifyUser.zip"
38class="button">Download the sample</a>
39 <p class="filename">NotifyUser.zip</p>
40</div>
41
42</div>
43</div>
44
45<p>
46   A notification is a user interface element that you display outside your app's normal UI to indicate
47   that an event has occurred. Users can choose to view the notification while using other apps and respond
48   to it when it's convenient for them.
49
50</p>
51
52<p>
53    The <a href="{@docRoot}design/patterns/notifications.html">Notifications design guide</a> shows
54    you how to design effective notifications and when to use them. This class shows you how to
55    implement the most common notification designs.
56</p>
57<h2>Lessons</h2>
58
59<dl>
60    <dt>
61        <strong><a href="build-notification.html">Building a Notification</a></strong>
62    </dt>
63    <dd>
64        Learn how to create a notification
65        {@link android.support.v4.app.NotificationCompat.Builder Builder}, set the
66        required features, and issue the notification.
67    </dd>
68    <dt>
69        <strong><a href="navigation.html">Preserving Navigation when Starting an Activity</a></strong>
70    </dt>
71    <dd>
72        Learn how to enforce the proper
73        navigation for an {@link android.app.Activity} started from a notification.
74    </dd>
75    <dt>
76        <strong>
77        <a href="managing.html">Updating Notifications</a>
78        </strong>
79    </dt>
80    <dd>
81        Learn how to update and remove notifications.
82    </dd>
83    <dt>
84        <strong>
85        <a href="expanded.html">Using Big View Styles</a>
86        </strong>
87    </dt>
88    <dd>
89        Learn how to create a big view within an expanded notification, while still maintaining
90        backward compatibility.
91    </dd>
92
93    <dt>
94        <strong>
95        <a href="display-progress.html">Displaying Progress in a Notification</a>
96        </strong>
97    </dt>
98    <dd>
99        Learn how to display the progress of an operation in a notification, both for
100        operations where you can estimate how much has been completed (determinate progress) and
101        operations where you don't know how much has been completed (indefinite progress).
102    </dd>
103</dl>
104