diff --git a/samples/wearable/AgendaData/_index.html b/samples/wearable/AgendaData/_index.html new file mode 100644 index 000000000..735e7861e --- /dev/null +++ b/samples/wearable/AgendaData/_index.html @@ -0,0 +1,17 @@ +

About: Syncs calendar events to your wearable at the press of a button, using the Wearable +DataApi to transmit data such as event time, description, and background image. The DataItems can be +deleted individually via an action on the event notifications, or all at once via a button on the +companion. When deleted using the notification action, a ConfirmationActivity is used to indicate +success or failure.

+

How to run: Install the Application APK on the companion, and the Wearable APK on the +wearable. Start the sample by running the AgendaData application on the companion.

+

Wearable APIs used: DataApi, NodeApi, WearableListenerService, ConfirmationActivity

+

Screenshots: +

+ Companion AgendaData + Dummy Calendar Event +
Companion app and wearable app communicate with each other.
+
+

diff --git a/samples/wearable/AgendaData/screenshots/companion_agenda_data.png b/samples/wearable/AgendaData/screenshots/companion_agenda_data.png new file mode 100644 index 000000000..c39503bf2 Binary files /dev/null and b/samples/wearable/AgendaData/screenshots/companion_agenda_data.png differ diff --git a/samples/wearable/AgendaData/screenshots/dummy_calendar_event.png b/samples/wearable/AgendaData/screenshots/dummy_calendar_event.png new file mode 100644 index 000000000..074c56b4a Binary files /dev/null and b/samples/wearable/AgendaData/screenshots/dummy_calendar_event.png differ diff --git a/samples/wearable/DataLayer/_index.html b/samples/wearable/DataLayer/_index.html new file mode 100644 index 000000000..2b9a3fa37 --- /dev/null +++ b/samples/wearable/DataLayer/_index.html @@ -0,0 +1,15 @@ +

About: You can cause the wearable to start an activity by pressing a button in the +companion app UI. You can also take a picture on the companion device, which will be transmitted as +an Asset for display on the wearable.

+

How to run: Install the Application APK on the companion, and the Wearable APK on the +wearable. Start the sample by running the DataLayer application on the companion.

+

Wearable APIs used: DataApi, MessageApi, NodeApi, WearableListenerService

+

Screenshots: +

+ Phone Image + Wearable Background Image +
Image captured on the phone, followed by the same image on the wearable. +
+
+

diff --git a/samples/wearable/DataLayer/screenshots/phone_image.png b/samples/wearable/DataLayer/screenshots/phone_image.png new file mode 100644 index 000000000..e045b6543 Binary files /dev/null and b/samples/wearable/DataLayer/screenshots/phone_image.png differ diff --git a/samples/wearable/DataLayer/screenshots/wearable_background_image.png b/samples/wearable/DataLayer/screenshots/wearable_background_image.png new file mode 100644 index 000000000..78261808d Binary files /dev/null and b/samples/wearable/DataLayer/screenshots/wearable_background_image.png differ diff --git a/samples/wearable/DelayedConfirmation/Application/_index.html b/samples/wearable/DelayedConfirmation/Application/_index.html deleted file mode 100644 index 6996cc757..000000000 --- a/samples/wearable/DelayedConfirmation/Application/_index.html +++ /dev/null @@ -1,5 +0,0 @@ -

Demonstrates how to create a DelayedConfirmationView in your wearable app. In this sample, -pressing a button on the phone app sends a message to the wearable to start a simple activity. This -activity displays a DelayedConfirmationView that starts when the user presses "Start Timer." Then, -callbacks are implemented on both the wearable and phone to show when the timer is selected or -finishes.

\ No newline at end of file diff --git a/samples/wearable/DelayedConfirmation/_index.html b/samples/wearable/DelayedConfirmation/_index.html new file mode 100644 index 000000000..2dd5cdbfb --- /dev/null +++ b/samples/wearable/DelayedConfirmation/_index.html @@ -0,0 +1,28 @@ +

About: Demonstrates how to create a DelayedConfirmationView in your wearable app. In this +sample, pressing a button on the phone app sends a message to the wearable to start a simple +activity. This activity displays a DelayedConfirmationView that starts when the user presses "Start +Timer." Then, callbacks are implemented on both the wearable and phone to show when the timer is +selected or finishes. The activity on the wearable uses BoxInsetLayout to automatically apply +appropriate margins based on whether the display is square or circular.

+

How to run: Install the Application APK on the companion, and the Wearable APK on the +wearable. Start the sample by running the DelayedConfirmation application on the companion and +pressing "Start".

+

Wearable APIs used: MessageApi, NodeApi, WearableListenerService, BoxInsetLayout, +DelayedConfirmationView

+

Screenshots: +

+ DelayedConfirmation view
+            in BoxInsetLayout with layout_box="top" + DelayedConfirmation view
+            in BoxInsetLayout with layout_box="all" + DelayedConfirmationView
+            selected notification + Timer Selected toast on
+            companion +
From left to right: DelayedConfirmationView in a BoxInsetLayout with + layout_box="top", the same view but with layout_box="all", the notification that shows + up on the wearable when you select the timer before it finishes, and the toast generated + on the phone at the same time. Note: normally you would make the circle's background the + same color as the box background so users won't see the box's edges.
+
+

diff --git a/samples/wearable/DelayedConfirmation/screenshots/companion_delayed_confirmation.png b/samples/wearable/DelayedConfirmation/screenshots/companion_delayed_confirmation.png new file mode 100644 index 000000000..b1b61a4af Binary files /dev/null and b/samples/wearable/DelayedConfirmation/screenshots/companion_delayed_confirmation.png differ diff --git a/samples/wearable/DelayedConfirmation/screenshots/delayed_confirmation_box_inset_all.png b/samples/wearable/DelayedConfirmation/screenshots/delayed_confirmation_box_inset_all.png new file mode 100644 index 000000000..9119dd38e Binary files /dev/null and b/samples/wearable/DelayedConfirmation/screenshots/delayed_confirmation_box_inset_all.png differ diff --git a/samples/wearable/DelayedConfirmation/screenshots/delayed_confirmation_box_inset_top.png b/samples/wearable/DelayedConfirmation/screenshots/delayed_confirmation_box_inset_top.png new file mode 100644 index 000000000..6d2da705d Binary files /dev/null and b/samples/wearable/DelayedConfirmation/screenshots/delayed_confirmation_box_inset_top.png differ diff --git a/samples/wearable/DelayedConfirmation/screenshots/delayed_confirmation_notification.png b/samples/wearable/DelayedConfirmation/screenshots/delayed_confirmation_notification.png new file mode 100644 index 000000000..936bcaf0f Binary files /dev/null and b/samples/wearable/DelayedConfirmation/screenshots/delayed_confirmation_notification.png differ diff --git a/samples/wearable/ElizaChat/_index.html b/samples/wearable/ElizaChat/_index.html index bdf250804..0bc94336d 100644 --- a/samples/wearable/ElizaChat/_index.html +++ b/samples/wearable/ElizaChat/_index.html @@ -1,19 +1,33 @@ -

This sample is a phone application that provides a chat experience in which -users can respond to messages with a quick voice response. New messages create -a notification with a "Reply" action. The notification is bridged from phone -to wearable, and selecting the "Reply" action on the wearable opens the voice -transcription UI allowing the user to speak a response.

+

About: +This sample is a phone application that provides a chat experience in which users can respond to +messages with a quick voice response. New messages create a notification with a "Reply" action. +The notification is bridged from phone to wearable, and selecting the "Reply" action on the +wearable opens the voice transcription UI allowing the user to speak a response.

-

To keep the example simple and self-contained, instead of a real chat -application (which would require a server or a peer-to-peer connection), the -conversation is conducted with an chat bot on the phone. Each time the bot -responds, the phone app updates the notification and allows the user to write -back. This sample is primarily intended to demonstrate the voice-reply -capabilities provided by the Android Wear notification API.

+

To keep the example simple and self-contained, instead of a real chat application (which would +require a server or a peer-to-peer connection), the conversation is conducted with an chat bot on +the phone. Each time the bot responds, the phone app updates the notification and allows the user +to write back. This sample is primarily intended to demonstrate the voice-reply capabilities +provided by the Android Wear notification API.

-

When using the emulator you can type a response instead of speaking it -aloud. To allow typed responses, ensure that your emulator image has the -"hardware keyboard present" option enabled. After typing your message into -the emulator window, hit the enter key and wait a few seconds for your -message to be sent.

+

When using the emulator you can type a response instead of speaking it aloud. To allow typed +responses, ensure that your emulator image has the "hardware keyboard present" option enabled. +After typing your message into the emulator window, hit the enter key and wait a few seconds for +your message to be sent.

+ +

How to run: Install the Application APK on the companion and run it. A notification will +automatically be bridged onto the wearable, with a "Reply" action.

+

Screenshots: +

+ Eliza chat when opened on companion + Initial notification on
+            wearable + Initial notification on
+            wearable + Response received on
+            companion +
The progressing stages of a chat with Eliza.
+
+

diff --git a/samples/wearable/ElizaChat/screenshots/companion_eliza_chat.png b/samples/wearable/ElizaChat/screenshots/companion_eliza_chat.png new file mode 100644 index 000000000..b7fd26663 Binary files /dev/null and b/samples/wearable/ElizaChat/screenshots/companion_eliza_chat.png differ diff --git a/samples/wearable/ElizaChat/screenshots/companion_eliza_chat_response.png b/samples/wearable/ElizaChat/screenshots/companion_eliza_chat_response.png new file mode 100644 index 000000000..cea063c35 Binary files /dev/null and b/samples/wearable/ElizaChat/screenshots/companion_eliza_chat_response.png differ diff --git a/samples/wearable/ElizaChat/screenshots/wearable_eliza_notification.png b/samples/wearable/ElizaChat/screenshots/wearable_eliza_notification.png new file mode 100644 index 000000000..c5ced4963 Binary files /dev/null and b/samples/wearable/ElizaChat/screenshots/wearable_eliza_notification.png differ diff --git a/samples/wearable/ElizaChat/screenshots/wearable_voice_reply.png b/samples/wearable/ElizaChat/screenshots/wearable_voice_reply.png new file mode 100644 index 000000000..032e03752 Binary files /dev/null and b/samples/wearable/ElizaChat/screenshots/wearable_voice_reply.png differ diff --git a/samples/wearable/EmbeddedApp/_index.html b/samples/wearable/EmbeddedApp/_index.html new file mode 100644 index 000000000..5b5cdc5e4 --- /dev/null +++ b/samples/wearable/EmbeddedApp/_index.html @@ -0,0 +1,11 @@ +

About: This simple app demonstrates how to embed a wearable app into a phone app.

+

How to run: Install the Application APK on the companion, and the Wearable APK on the +wearable. Start the sample by running the EmbeddedApp Sample application on the companion.

+

Screenshots: +

+ Phone app + Embedded wearable app +
The sample phone app and embedded wearable app.
+
+

\ No newline at end of file diff --git a/samples/wearable/EmbeddedApp/screenshots/embedded_wearable_app.png b/samples/wearable/EmbeddedApp/screenshots/embedded_wearable_app.png new file mode 100644 index 000000000..414afe519 Binary files /dev/null and b/samples/wearable/EmbeddedApp/screenshots/embedded_wearable_app.png differ diff --git a/samples/wearable/EmbeddedApp/screenshots/phone_app.png b/samples/wearable/EmbeddedApp/screenshots/phone_app.png new file mode 100644 index 000000000..46c3d89c3 Binary files /dev/null and b/samples/wearable/EmbeddedApp/screenshots/phone_app.png differ diff --git a/samples/wearable/FindMyPhone/_index.html b/samples/wearable/FindMyPhone/_index.html new file mode 100644 index 000000000..9d19f5bed --- /dev/null +++ b/samples/wearable/FindMyPhone/_index.html @@ -0,0 +1,21 @@ +

About: This sample application notifies you when you may have left your phone behind +(specifically, when your companion and wearable disconnect). If you have misplaced your phone, but +it is still connected to your wearable, you can also start an activity on the wearable to sound an +alarm on your phone.

+

How to run: Install the Application APK on the companion, and the Wearable APK on the +wearable. A notification will automatically appear on the wearable when the wearable and companion +disconnect. To start the FindMyPhone activity on the wearable, go to the voice menu (either by +saying "OK Google" or tapping the home screen) and select the "Start..." option. Then, select +"Find My Phone" from the submenu.

+

Wearable APIs used: DataApi, WearableListenerService

+

Screenshots: +

+ Forgetting something? + Tap to sound an alarm on phone +
The notification that appears when your wearable and companion disconnect, + followed by the wearable FindMyPhone activity (which just creates a notification). +
+
+

diff --git a/samples/wearable/FindMyPhone/screenshots/find_my_phone_activity.png b/samples/wearable/FindMyPhone/screenshots/find_my_phone_activity.png new file mode 100644 index 000000000..8cff992c3 Binary files /dev/null and b/samples/wearable/FindMyPhone/screenshots/find_my_phone_activity.png differ diff --git a/samples/wearable/FindMyPhone/screenshots/find_my_phone_notification.png b/samples/wearable/FindMyPhone/screenshots/find_my_phone_notification.png new file mode 100644 index 000000000..a8ed8679a Binary files /dev/null and b/samples/wearable/FindMyPhone/screenshots/find_my_phone_notification.png differ diff --git a/samples/wearable/Flashlight/_index.html b/samples/wearable/Flashlight/_index.html new file mode 100644 index 000000000..358148a21 --- /dev/null +++ b/samples/wearable/Flashlight/_index.html @@ -0,0 +1,12 @@ +

About: Wearable activity that uses your wearable screen as a flashlight. There is also +a party-mode option, if you want to make things interesting.

+

How to run: Install the Wearable APK on the wearable, go to the voice menu (either by +saying "OK Google" or tapping the home screen) and select the "Start..." option. Then, select +"Flashlight" from the submenu.

+

Screenshots: +

+ Flashlight + Party mode! +
Plain flashlight, followed by party-mode.
+
+

diff --git a/samples/wearable/Flashlight/screenshots/flashlight.png b/samples/wearable/Flashlight/screenshots/flashlight.png new file mode 100644 index 000000000..02fca20d6 Binary files /dev/null and b/samples/wearable/Flashlight/screenshots/flashlight.png differ diff --git a/samples/wearable/Flashlight/screenshots/party_mode.gif b/samples/wearable/Flashlight/screenshots/party_mode.gif new file mode 100644 index 000000000..8258b7dd6 Binary files /dev/null and b/samples/wearable/Flashlight/screenshots/party_mode.gif differ diff --git a/samples/wearable/Geofencing/_index.html b/samples/wearable/Geofencing/_index.html new file mode 100644 index 000000000..220fc55b3 --- /dev/null +++ b/samples/wearable/Geofencing/_index.html @@ -0,0 +1,17 @@ +

About: When a user enters the vicinity of the Android building (B44) or the Yerba Buena +Gardens near the Moscone center in San Francisco, a notification silently appears on his/her +wearable with an option to check in. This notification automatically disappears when he/she leaves +the area, and reappears the next time he/she is at one of these locations.

+

How to run: Install the Application APK on the companion, and the Wearable APK on the +wearable. Then, start "Android Wear Geofencing Example Application" on the companion. You will +automatically be notified on the wearable if you enter one of the two specified areas, assuming +you have your phone on you.

+

Wearable APIs used: DataApi, WearableListenerService

+

Other APIs used: Play Services API used for Geofencing (Geofence and LocationClient)

+

Screenshots: +

+ Check in? +
Notification that appears when you arrive at the Android building.
+
+

diff --git a/samples/wearable/Geofencing/screenshots/android_building_check_in.png b/samples/wearable/Geofencing/screenshots/android_building_check_in.png new file mode 100644 index 000000000..5101e772c Binary files /dev/null and b/samples/wearable/Geofencing/screenshots/android_building_check_in.png differ diff --git a/samples/wearable/GridViewPager/_index.html b/samples/wearable/GridViewPager/_index.html new file mode 100644 index 000000000..5f7aa63de --- /dev/null +++ b/samples/wearable/GridViewPager/_index.html @@ -0,0 +1,12 @@ +

About: Demonstrates how to implement a GridViewPager in your wearable app.

+

How to run: Install the Wearable APK on the wearable, go to the voice menu (either by +saying "OK Google" or tapping the home screen) and select the "Start..." option. Then, select +"GridViewPager Sample" from the submenu.

+

Wearable APIs used: GridViewPager, CardFragment, FragmentGridPagerAdapter, +ImageReference

+

Screenshots: +

+ GridViewPager +
Part of the sample in action.
+
+

diff --git a/samples/wearable/GridViewPager/screenshots/grid_view_pager.gif b/samples/wearable/GridViewPager/screenshots/grid_view_pager.gif new file mode 100644 index 000000000..f70dafcec Binary files /dev/null and b/samples/wearable/GridViewPager/screenshots/grid_view_pager.gif differ diff --git a/samples/wearable/JumpingJack/_index.html b/samples/wearable/JumpingJack/_index.html new file mode 100644 index 000000000..3f4c26a4e --- /dev/null +++ b/samples/wearable/JumpingJack/_index.html @@ -0,0 +1,10 @@ +

About: Uses the Gravity sensor to count how many jumping jacks you've performed.

+

How to run: Install the Wearable APK on the wearable, go to the voice menu (either by +saying "OK Google" or tapping the home screen) and select the "Start..." option. Then, select + "Jumping Jack" from the submenu.

+

Screenshots: +

+ JumpingJack +
JumpingJack has a simple interface.
+
+

diff --git a/samples/wearable/JumpingJack/screenshots/jumping_jack.gif b/samples/wearable/JumpingJack/screenshots/jumping_jack.gif new file mode 100644 index 000000000..86c4faa71 Binary files /dev/null and b/samples/wearable/JumpingJack/screenshots/jumping_jack.gif differ diff --git a/samples/wearable/Notifications/Application/_index.html b/samples/wearable/Notifications/Application/_index.html deleted file mode 100644 index 4bda0fa76..000000000 --- a/samples/wearable/Notifications/Application/_index.html +++ /dev/null @@ -1,24 +0,0 @@ -

This sample phone application provides a showcase of available notification -styles and demonstrates various features of the Android Wear notifications -API. Running the sample on your phone allows you to select between various -notification styles and to see how these notifications are displayed, both in -a phone's notification shade and on the wearable. The sample allows you to -create the following types of notifications:

- -

This sample also allows you to toggle other attributes for each of these -notification types, including whether a content intent or action are included, -and whether the notification is marked as "local only," indicating that it -should not be bridged between devices.

diff --git a/samples/wearable/Notifications/_index.html b/samples/wearable/Notifications/_index.html new file mode 100644 index 000000000..af28c9404 --- /dev/null +++ b/samples/wearable/Notifications/_index.html @@ -0,0 +1,76 @@ +

About: This sample application provides a showcase of available notification styles and +demonstrates various features of the Android Wear notifications API. Running the sample on your +companion allows you to select between various notification styles and to see how these +notifications are displayed, both in a phone's notification shade and on the wearable. The companion +application allows you to create the following types of notifications:

+ +

This sample also allows you to toggle other attributes for each of these notification types, +including whether a content intent or action are included, and whether the notification is marked as +"local only," indicating that it should not be bridged between devices.

+

You can also run a separate APK on your wearable for even more customizable notifications. The +wearable notification styles include:

+ +

How to run: Install the Application APK on the companion, and/or the Wearable APK on the +wearable. Start the sample by running the Wearable Notifications application on the companion, or +by starting the Wearable Notifications application on the wearable. To do the latter, go to the +voice menu - either by saying Ok Google or tapping the home screen - and select the "Start..." +option. Then, select "Wearable Notifications" from the submenu.

+

Wearable APIs used: Notification.WearableExtender, Notification.BigTextStyle, +Notification.BigPictureStyle (note that NotificationCompat, rather than Notification, is used on the +companion side in order to be compatible with older versions of Android).

+

Screenshots: +

+ Multiple page + Page 1 + Page 2 + Bottom aligned - companion + Bottom aligned - wearable + Content action - companion + Content action - wearable + Content action 2 - wearable + Bundle aligned - companion + Bundle - wearable +
Notifications selected from companion app.
+
+
+ Select 'Basic example' + Basic example + Select 'Content icon example' + Content icon 1 + Content icon 2 + Content icon 3 + Content icon 4 + Select 'Display intent example' + Display intent + Select 'Stylized text example' + Stylized text example +
Notifications selected from wearable app.
+
+

diff --git a/samples/wearable/Notifications/screenshots/basic-menu.png b/samples/wearable/Notifications/screenshots/basic-menu.png new file mode 100644 index 000000000..75c29cc15 Binary files /dev/null and b/samples/wearable/Notifications/screenshots/basic-menu.png differ diff --git a/samples/wearable/Notifications/screenshots/basic.png b/samples/wearable/Notifications/screenshots/basic.png new file mode 100644 index 000000000..9e13b0926 Binary files /dev/null and b/samples/wearable/Notifications/screenshots/basic.png differ diff --git a/samples/wearable/Notifications/screenshots/bottom-aligned.png b/samples/wearable/Notifications/screenshots/bottom-aligned.png new file mode 100644 index 000000000..88c7ffadb Binary files /dev/null and b/samples/wearable/Notifications/screenshots/bottom-aligned.png differ diff --git a/samples/wearable/Notifications/screenshots/bundle.png b/samples/wearable/Notifications/screenshots/bundle.png new file mode 100644 index 000000000..a6e1ad5ee Binary files /dev/null and b/samples/wearable/Notifications/screenshots/bundle.png differ diff --git a/samples/wearable/Notifications/screenshots/companion-bottom-aligned.png b/samples/wearable/Notifications/screenshots/companion-bottom-aligned.png new file mode 100644 index 000000000..2bda56c8b Binary files /dev/null and b/samples/wearable/Notifications/screenshots/companion-bottom-aligned.png differ diff --git a/samples/wearable/Notifications/screenshots/companion-bundle.png b/samples/wearable/Notifications/screenshots/companion-bundle.png new file mode 100644 index 000000000..90e0e0869 Binary files /dev/null and b/samples/wearable/Notifications/screenshots/companion-bundle.png differ diff --git a/samples/wearable/Notifications/screenshots/companion-content-action.png b/samples/wearable/Notifications/screenshots/companion-content-action.png new file mode 100644 index 000000000..07e680602 Binary files /dev/null and b/samples/wearable/Notifications/screenshots/companion-content-action.png differ diff --git a/samples/wearable/Notifications/screenshots/companion-multiple-page.png b/samples/wearable/Notifications/screenshots/companion-multiple-page.png new file mode 100644 index 000000000..7f115219d Binary files /dev/null and b/samples/wearable/Notifications/screenshots/companion-multiple-page.png differ diff --git a/samples/wearable/Notifications/screenshots/content-action.png b/samples/wearable/Notifications/screenshots/content-action.png new file mode 100644 index 000000000..415dd9f66 Binary files /dev/null and b/samples/wearable/Notifications/screenshots/content-action.png differ diff --git a/samples/wearable/Notifications/screenshots/content-action2.png b/samples/wearable/Notifications/screenshots/content-action2.png new file mode 100644 index 000000000..7f01994ac Binary files /dev/null and b/samples/wearable/Notifications/screenshots/content-action2.png differ diff --git a/samples/wearable/Notifications/screenshots/content-icon-menu.png b/samples/wearable/Notifications/screenshots/content-icon-menu.png new file mode 100644 index 000000000..6c810cea8 Binary files /dev/null and b/samples/wearable/Notifications/screenshots/content-icon-menu.png differ diff --git a/samples/wearable/Notifications/screenshots/content-icon1.png b/samples/wearable/Notifications/screenshots/content-icon1.png new file mode 100644 index 000000000..f9d12da48 Binary files /dev/null and b/samples/wearable/Notifications/screenshots/content-icon1.png differ diff --git a/samples/wearable/Notifications/screenshots/content-icon2.png b/samples/wearable/Notifications/screenshots/content-icon2.png new file mode 100644 index 000000000..a36b734c4 Binary files /dev/null and b/samples/wearable/Notifications/screenshots/content-icon2.png differ diff --git a/samples/wearable/Notifications/screenshots/content-icon3.png b/samples/wearable/Notifications/screenshots/content-icon3.png new file mode 100644 index 000000000..e2c757e5d Binary files /dev/null and b/samples/wearable/Notifications/screenshots/content-icon3.png differ diff --git a/samples/wearable/Notifications/screenshots/content-icon4.png b/samples/wearable/Notifications/screenshots/content-icon4.png new file mode 100644 index 000000000..f5d05231f Binary files /dev/null and b/samples/wearable/Notifications/screenshots/content-icon4.png differ diff --git a/samples/wearable/Notifications/screenshots/display-intent-menu.png b/samples/wearable/Notifications/screenshots/display-intent-menu.png new file mode 100644 index 000000000..567673f73 Binary files /dev/null and b/samples/wearable/Notifications/screenshots/display-intent-menu.png differ diff --git a/samples/wearable/Notifications/screenshots/display-intent.png b/samples/wearable/Notifications/screenshots/display-intent.png new file mode 100644 index 000000000..f3b333d5e Binary files /dev/null and b/samples/wearable/Notifications/screenshots/display-intent.png differ diff --git a/samples/wearable/Notifications/screenshots/multiple-page1.png b/samples/wearable/Notifications/screenshots/multiple-page1.png new file mode 100644 index 000000000..d6591d97e Binary files /dev/null and b/samples/wearable/Notifications/screenshots/multiple-page1.png differ diff --git a/samples/wearable/Notifications/screenshots/multiple-page2.png b/samples/wearable/Notifications/screenshots/multiple-page2.png new file mode 100644 index 000000000..730cb3047 Binary files /dev/null and b/samples/wearable/Notifications/screenshots/multiple-page2.png differ diff --git a/samples/wearable/Notifications/screenshots/stylized-menu.png b/samples/wearable/Notifications/screenshots/stylized-menu.png new file mode 100644 index 000000000..2e94c93bd Binary files /dev/null and b/samples/wearable/Notifications/screenshots/stylized-menu.png differ diff --git a/samples/wearable/Notifications/screenshots/stylized.png b/samples/wearable/Notifications/screenshots/stylized.png new file mode 100644 index 000000000..338c9cc5d Binary files /dev/null and b/samples/wearable/Notifications/screenshots/stylized.png differ diff --git a/samples/wearable/Quiz/Application/_index.html b/samples/wearable/Quiz/Application/_index.html deleted file mode 100644 index 39e707562..000000000 --- a/samples/wearable/Quiz/Application/_index.html +++ /dev/null @@ -1,12 +0,0 @@ -

This sample provides an example of an app that uses Google Play Services Wearable Data APIs to -communicate between applications on a phone and a paired wearable device. Users can create quiz -questions on the phone, each of which has a DataItem associated with it. These DataItems are then -received on the wearable, which then displays them as notifications. Each notification contains the -question as the first page, followed by answers as actions. When an answer is selected, the -corresponding question's DataItem is updated, which allows the phone application to update the -status of the question (i.e. did the user answer it correctly or not) and prompt the next question. -

-

At the end of the quiz, the sample uses the Google Play Services Wearable Message APIs to create -an end-of-quiz report notification on the wearable, with an option to reset the quiz (by sending a -message back to the phone). -

\ No newline at end of file diff --git a/samples/wearable/Quiz/_index.html b/samples/wearable/Quiz/_index.html new file mode 100644 index 000000000..98746112a --- /dev/null +++ b/samples/wearable/Quiz/_index.html @@ -0,0 +1,25 @@ +

About: This sample uses Google Play Services Wearable Data APIs to communicate between +applications on a phone and a paired wearable device. Users can create quiz questions on the phone, +each of which has an associated DataItem. These DataItems are then received on the wearable, which +displays them as notifications. Each notification contains the question as the first page, followed +by answers as actions. When an answer is selected, the corresponding question's DataItem is updated, +which allows the phone application to update the status of the question (i.e. did the user answer it +correctly or not) and prompt the next question. +

+

At the end of the quiz, the sample uses the Google Play Services Wearable Message APIs to create +an end-of-quiz report notification on the wearable, with an option to reset the quiz (by sending a +message back to the phone).

+

How to run: Install the Application APK on the companion, and the Wearable APK on the +wearable. Start the sample by running the Quiz application on the companion.

+

Wearable APIs used: DataApi, MessageApi, NodeApi, WearableListenerService

+

Screenshots: +

+ Quiz on companion + Wearable Quiz + Answering... + Quiz on companion + End report +
Sample quiz progression involving a clearly unbiased question.
+
+

diff --git a/samples/wearable/Quiz/screenshots/companion_quiz.png b/samples/wearable/Quiz/screenshots/companion_quiz.png new file mode 100644 index 000000000..15f7e8030 Binary files /dev/null and b/samples/wearable/Quiz/screenshots/companion_quiz.png differ diff --git a/samples/wearable/Quiz/screenshots/companion_quiz_correct_status.png b/samples/wearable/Quiz/screenshots/companion_quiz_correct_status.png new file mode 100644 index 000000000..c0e25ca58 Binary files /dev/null and b/samples/wearable/Quiz/screenshots/companion_quiz_correct_status.png differ diff --git a/samples/wearable/Quiz/screenshots/wearable_quiz.png b/samples/wearable/Quiz/screenshots/wearable_quiz.png new file mode 100644 index 000000000..0c631390e Binary files /dev/null and b/samples/wearable/Quiz/screenshots/wearable_quiz.png differ diff --git a/samples/wearable/Quiz/screenshots/wearable_quiz_answer.png b/samples/wearable/Quiz/screenshots/wearable_quiz_answer.png new file mode 100644 index 000000000..eb4751615 Binary files /dev/null and b/samples/wearable/Quiz/screenshots/wearable_quiz_answer.png differ diff --git a/samples/wearable/Quiz/screenshots/wearable_quiz_report.png b/samples/wearable/Quiz/screenshots/wearable_quiz_report.png new file mode 100644 index 000000000..196d04595 Binary files /dev/null and b/samples/wearable/Quiz/screenshots/wearable_quiz_report.png differ diff --git a/samples/wearable/RecipeAssistant/_index.html b/samples/wearable/RecipeAssistant/_index.html index 3dce7d3df..80dc20078 100644 --- a/samples/wearable/RecipeAssistant/_index.html +++ b/samples/wearable/RecipeAssistant/_index.html @@ -1,8 +1,19 @@ -

This phone application uses the enhanced notifications API to display -recipe instructions using paged notifications. After starting the application -on your phone, you can browse from a short list of recipes and select one to -view. Each recipe is broken down into a number of steps; when ready, you can -click on the START action in the action bar to send the steps to the wearable. -On the wearable device, the steps are displayed as a multi-page notification, -with one page for each step in the recipe.

- +

About: This phone application uses the enhanced notifications API to display recipe +instructions using paged notifications. After starting the application on your phone, you can browse +from a short list of recipes and select one to view. Each recipe is broken down into a number of +steps; when ready, you can click on the START action in the action bar to send the steps to the +wearable. On the wearable device, the steps are displayed as a multi-page notification, with one +page for each step in the recipe.

+

How to run: Install the Application APK on the companion and run it like any other +Android app.

+

Screenshots: +

+ Super simple guacamole + Guacamole wearable notification + Guacamole step 1 +
Making guacamole!
+
+

\ No newline at end of file diff --git a/samples/wearable/RecipeAssistant/screenshots/guac_notification.png b/samples/wearable/RecipeAssistant/screenshots/guac_notification.png new file mode 100644 index 000000000..e041b11ec Binary files /dev/null and b/samples/wearable/RecipeAssistant/screenshots/guac_notification.png differ diff --git a/samples/wearable/RecipeAssistant/screenshots/guac_notification_step1.png b/samples/wearable/RecipeAssistant/screenshots/guac_notification_step1.png new file mode 100644 index 000000000..e0157ea7e Binary files /dev/null and b/samples/wearable/RecipeAssistant/screenshots/guac_notification_step1.png differ diff --git a/samples/wearable/RecipeAssistant/screenshots/recipe_assistant_guac.png b/samples/wearable/RecipeAssistant/screenshots/recipe_assistant_guac.png new file mode 100644 index 000000000..a34da6e68 Binary files /dev/null and b/samples/wearable/RecipeAssistant/screenshots/recipe_assistant_guac.png differ diff --git a/samples/wearable/SkeletonWearableApp/_index.html b/samples/wearable/SkeletonWearableApp/_index.html new file mode 100644 index 000000000..dc2a488d8 --- /dev/null +++ b/samples/wearable/SkeletonWearableApp/_index.html @@ -0,0 +1,22 @@ +

About: This sample is a mostly empty wearable app that implements a fullscreen activity +conforming to Android Wear best practices. Included in the sample are examples of GridViewPager, +DelayedConfirmationView, and DismissOverlayView. Developers who require a fullscreen activity for +their wearable app can use this sample as a starting point.

+

How to run: Install the Wearable APK on the wearable, go to the voice menu (either by +saying "OK Google" or tapping the home screen) and select the "Start..." option. Then, select +"Skeleton Wearable App" from the submenu.

+

Wearable APIs used: DelayedConfirmationView, DismissOverlayView, GridViewPager, +CardFragment, FragmentGridPagerAdapter, ImageReference

+

Screenshots: +

+ SkeletonWearableApp + GridViewPager + DelayedConfirmationView + DismissOverlayView +
From left to right: the initial activity, GridViewPager, + DelayedConfirmationView, and DismissOverlayView
+
+

diff --git a/samples/wearable/SkeletonWearableApp/screenshots/delayed_confirmation.png b/samples/wearable/SkeletonWearableApp/screenshots/delayed_confirmation.png new file mode 100644 index 000000000..29943617f Binary files /dev/null and b/samples/wearable/SkeletonWearableApp/screenshots/delayed_confirmation.png differ diff --git a/samples/wearable/SkeletonWearableApp/screenshots/dismiss_overlay.png b/samples/wearable/SkeletonWearableApp/screenshots/dismiss_overlay.png new file mode 100644 index 000000000..142d7e475 Binary files /dev/null and b/samples/wearable/SkeletonWearableApp/screenshots/dismiss_overlay.png differ diff --git a/samples/wearable/SkeletonWearableApp/screenshots/grid_view_pager.png b/samples/wearable/SkeletonWearableApp/screenshots/grid_view_pager.png new file mode 100644 index 000000000..f59c13d0d Binary files /dev/null and b/samples/wearable/SkeletonWearableApp/screenshots/grid_view_pager.png differ diff --git a/samples/wearable/SkeletonWearableApp/screenshots/skeleton_wearable_app.png b/samples/wearable/SkeletonWearableApp/screenshots/skeleton_wearable_app.png new file mode 100644 index 000000000..4f1727459 Binary files /dev/null and b/samples/wearable/SkeletonWearableApp/screenshots/skeleton_wearable_app.png differ diff --git a/samples/wearable/SynchronizedNotifications/_index.html b/samples/wearable/SynchronizedNotifications/_index.html new file mode 100644 index 000000000..1461ba6b6 --- /dev/null +++ b/samples/wearable/SynchronizedNotifications/_index.html @@ -0,0 +1,28 @@ +

About: This sample creates three simple types of notifications: +

    +
  1. A phone-only notification
  2. +
  3. A watch-only notification
  4. +
  5. 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).
  6. +
+

+

How to run: 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. +

+

Wearable APIs used: DataApi, WearableListenerService

+

Screenshots: +

+ Notification options + Watch only notification + Different notifications - phone + Different notifications - watch +
From left to right: notification options, Watch Only Notification, Different + Notifications - Phone, and Different Notifications - Watch
+
+

\ No newline at end of file diff --git a/samples/wearable/SynchronizedNotifications/screenshots/different_notifications_phone.png b/samples/wearable/SynchronizedNotifications/screenshots/different_notifications_phone.png new file mode 100644 index 000000000..cab31e090 Binary files /dev/null and b/samples/wearable/SynchronizedNotifications/screenshots/different_notifications_phone.png differ diff --git a/samples/wearable/SynchronizedNotifications/screenshots/different_notifications_wearable.png b/samples/wearable/SynchronizedNotifications/screenshots/different_notifications_wearable.png new file mode 100644 index 000000000..97da71527 Binary files /dev/null and b/samples/wearable/SynchronizedNotifications/screenshots/different_notifications_wearable.png differ diff --git a/samples/wearable/SynchronizedNotifications/screenshots/notification_options.png b/samples/wearable/SynchronizedNotifications/screenshots/notification_options.png new file mode 100644 index 000000000..8cd00950a Binary files /dev/null and b/samples/wearable/SynchronizedNotifications/screenshots/notification_options.png differ diff --git a/samples/wearable/SynchronizedNotifications/screenshots/watch_only_notification.png b/samples/wearable/SynchronizedNotifications/screenshots/watch_only_notification.png new file mode 100644 index 000000000..34e950fea Binary files /dev/null and b/samples/wearable/SynchronizedNotifications/screenshots/watch_only_notification.png differ diff --git a/samples/wearable/Timer/_index.html b/samples/wearable/Timer/_index.html new file mode 100644 index 000000000..10ccf30b5 --- /dev/null +++ b/samples/wearable/Timer/_index.html @@ -0,0 +1,13 @@ +

About: This simple wearable app allows the user to set a countdown timer. It runs +independently on the wearable with no phone connection.

+

How to run: Install the Wearable APK on the wearable, then start the timer via the voice +menu, either by saying "OK Google, start a timer" or by tapping the home screen and selecting +"Start a timer".

+

Wearable APIs used: voice command trigger, WearableListView

+

Screenshots: +

+ GridViewPager + GridViewPager +
A simple timer.
+
+

diff --git a/samples/wearable/Timer/screenshots/timer.png b/samples/wearable/Timer/screenshots/timer.png new file mode 100644 index 000000000..6ef8f869a Binary files /dev/null and b/samples/wearable/Timer/screenshots/timer.png differ diff --git a/samples/wearable/Timer/screenshots/timer_countdown.png b/samples/wearable/Timer/screenshots/timer_countdown.png new file mode 100644 index 000000000..505733df6 Binary files /dev/null and b/samples/wearable/Timer/screenshots/timer_countdown.png differ diff --git a/samples/wearable/WatchViewStub/Wearable/_index.html b/samples/wearable/WatchViewStub/Wearable/_index.html deleted file mode 100644 index b46a3ece5..000000000 --- a/samples/wearable/WatchViewStub/Wearable/_index.html +++ /dev/null @@ -1,13 +0,0 @@ -

This sample demonstrates how to specify different layouts for round and rectangular screens. -The layouts used in this sample are as follows: -

-Additionally, a unique animation is played when the user clicks on the layout, depending on whether -the screen is round or rectangular: - -

\ No newline at end of file diff --git a/samples/wearable/WatchViewStub/_index.html b/samples/wearable/WatchViewStub/_index.html new file mode 100644 index 000000000..0e01e304e --- /dev/null +++ b/samples/wearable/WatchViewStub/_index.html @@ -0,0 +1,26 @@ +

About: This sample demonstrates how to specify different layouts for round and rectangular +screens. The layouts used in this sample are as follows: +

+Additionally, a unique animation is played when the user clicks on the layout, depending on whether +the screen is round or rectangular: + +

+

How to run: Install the Wearable APK on the wearable, go to the voice menu (either by +saying "OK Google" or tapping the home screen) and select the "Start..." option. Then, select +"WatchViewStub Sample" from the submenu.

+

Wearable APIs used: WatchViewStub, DismissOverlayView

+

Screenshots: +

+ Round layout + Rectangular layout +
The layout that is inflated depends on the shape of your wearable.
+
+

diff --git a/samples/wearable/WatchViewStub/screenshots/watch_view_stub_rectangular.png b/samples/wearable/WatchViewStub/screenshots/watch_view_stub_rectangular.png new file mode 100644 index 000000000..939cb18da Binary files /dev/null and b/samples/wearable/WatchViewStub/screenshots/watch_view_stub_rectangular.png differ diff --git a/samples/wearable/WatchViewStub/screenshots/watch_view_stub_round.png b/samples/wearable/WatchViewStub/screenshots/watch_view_stub_round.png new file mode 100644 index 000000000..3055f6d00 Binary files /dev/null and b/samples/wearable/WatchViewStub/screenshots/watch_view_stub_round.png differ