• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1page.title=Adding Wearable Features to Notifications
2@jd:body
3
4<div id="tb-wrapper">
5  <div id="tb">
6
7    <h2>Dependencies and prerequisites</h2>
8    <ul>
9      <li>Android 4.3 (API Level 18) or higher on the handset device</li>
10      <li>An Android Wear device or Wear AVD</li>
11      <li><a href="{@docRoot}tools/support-library/features.html#v4">The Android v4 support library
12      (or v13, which includes v4)</li>
13    </ul>
14    <h2>You should also read</h2>
15    <ul>
16      <li><a href="{@docRoot}design/wear/index.html">Android Wear Design Principles</a></li>
17    </ul>
18  </div>
19</div>
20
21<p>When an Android handheld (phone or tablet) and Android wearable are connected, the handheld
22automatically shares notifications with the wearable. On the wearable, each
23notification appears as a new card in the <a href="{@docRoot}design/wear/index.html"
24>context stream</a>.</p>
25
26<p>However, to give users the best experience, you should add wearable-specific functionality to the
27notifications you already create. The following lessons show you how to
28create notifications that are catered for handhelds and wearables at the same time.
29</p>
30
31<img src="{@docRoot}wear/images/notification_phone@2x.png" width="700" height="265" />
32
33<p class="caption"><b>Figure 1.</b> The same notification displayed on a handheld and wearable.</p>
34
35<h2>Lessons</h2>
36  <dl>
37    <dt><a href="{@docRoot}training/wearables/notifications/creating.html">Creating a notification</a></dt>
38      <dd>Learn how to create notifications with wearable features with the Android support library.</dd>
39    <dt><a href="{@docRoot}training/wearables/notifications/voice-input.html">Receiving Voice Input
40in a Notification</a></dt>
41      <dd>Learn how to add an action to a wearable notification that receives voice input from users and delivers
42      the transcribed message to your handset app.</dd>
43    <dt><a href="{@docRoot}training/wearables/notifications/pages.html">Adding Pages to a Notification</a></dt>
44      <dd>Learn how to add additional pages of information that are visible when the user
45swipes to the left.</dd>
46    <dt><a href="{@docRoot}training/wearables/notifications/stacks.html">Stacking Notifications</a></dt>
47      <dd>Learn how to place all similar notifications from your app in a stack, allowing users to view
48      each notification individually without adding multiple cards to the card stream.</dd>
49  </dl>
50
51</div>