28 lines
1.5 KiB
HTML
28 lines
1.5 KiB
HTML
<p><b>About:</b> This sample creates three simple types of notifications:
|
|
<ol>
|
|
<li>A phone-only notification</li>
|
|
<li>A watch-only notification</li>
|
|
<li>A pair of synchronized phone and watch notifications where the content shown
|
|
on the watch notification is different from the one on the phone. These notifications
|
|
are synchronized in the sense that dismissing one results in dismissal of the other one
|
|
(all based on the Data Layer APIs).</li>
|
|
</ol>
|
|
</p>
|
|
<p><b>How to run:</b> Install the Application APK on the companion, and the Wearable APK on the
|
|
wearable. Start the sample by running the SynchronizedNotifications application on the companion.
|
|
</p>
|
|
<p><b>Wearable APIs used:</b> DataApi, WearableListenerService</p>
|
|
<p><b>Screenshots:</b>
|
|
<figure>
|
|
<img src="screenshots/notification_options.png" alt="Notification options" width="216"
|
|
height="384">
|
|
<img src="screenshots/watch_only_notification.png" alt="Watch only notification" width="140"
|
|
height="140">
|
|
<img src="screenshots/different_notifications_phone.png"
|
|
alt="Different notifications - phone" width="216" height="384">
|
|
<img src="screenshots/different_notifications_wearable.png"
|
|
alt="Different notifications - watch" width="140" height="140">
|
|
<figcaption>From left to right: notification options, Watch Only Notification, Different
|
|
Notifications - Phone, and Different Notifications - Watch</figcaption>
|
|
</figure>
|
|
</p> |