Home | History | Annotate | Download | only in SynchronizedNotifications
      1 <p><b>About:</b> This sample creates three simple types of notifications:
      2     <ol>
      3         <li>A phone-only notification</li>
      4         <li>A watch-only notification</li>
      5         <li>A pair of synchronized phone and watch notifications where the content shown
      6             on the watch notification is different from the one on the phone. These notifications
      7             are synchronized in the sense that dismissing one results in dismissal of the other one
      8             (all based on the Data Layer APIs).</li>
      9     </ol>
     10 </p>
     11 <p><b>How to run:</b> Install the Application APK on the companion, and the Wearable APK on the
     12 wearable. Start the sample by running the SynchronizedNotifications application on the companion.
     13 </p>
     14 <p><b>Wearable APIs used:</b> DataApi, WearableListenerService</p>
     15 <p><b>Screenshots:</b>
     16     <figure>
     17         <img src="screenshots/notification_options.png" alt="Notification options" width="216"
     18              height="384">
     19         <img src="screenshots/watch_only_notification.png" alt="Watch only notification" width="140"
     20              height="140">
     21         <img src="screenshots/different_notifications_phone.png"
     22              alt="Different notifications - phone" width="216" height="384">
     23         <img src="screenshots/different_notifications_wearable.png"
     24              alt="Different notifications - watch" width="140" height="140">
     25         <figcaption>From left to right: notification options, Watch Only Notification, Different
     26             Notifications - Phone, and Different Notifications - Watch</figcaption>
     27     </figure>
     28 </p>