Join David Gassner for an in-depth discussion in this video Sending a message from the watch, part of Building Apps for Android Wear Devices.
- I've added code to my Wearable app…to connect to the node, that is the phone…that's paired with the watch.…Now I'm ready to send a message to the phone.…I'm working now on a version of my project…named send message.…It picks up where the last project left off.…And first I'm going to handle the click event…that happens when the user touches a button…on the watch app.…When the user touches one of these buttons,…that we'll call the method button click handler.…Now this method is registered in the on click event handler…in each of the buttons.…
They all call the same method.…But they all have different text values…that are based on string resources…that are stored as part of the app.…Their name's London, Hong Kong, Paris, and San Francisco.…But these values, in turn, match values…that are in the data set used by the handheld application.…This class, data provider, defines all that data,…and you'll see exactly the same strings here.…London, Hong Kong, San Francisco and Paris.…
So that's how the two apps are matching up with each other.…
Author
Released
9/24/2015- Setting the SDK and devices for app development and testing
- Sending notifications to Android Wear devices
- Adding action buttons and voice input to notifications
- Stacking notifications
- Creating a new wearable app
- Managing layouts for different watch shapes
- Sending messages between phones and Android Wear devices
- Packaging an Android Wear app for distribution
Skill Level Intermediate
Duration
Views
Related Courses
-
Learning Raspberry Pi
with Mark Niemann-Ross1h 41m Intermediate -
Programming the Internet of Things with iOS
with Michael Lehman2h 49m Intermediate -
Android App Development: Internet of Things
with Michael Lehman2h 11m Intermediate
-
Introduction
-
Welcome1m 2s
-
Using the exercise files2m 15s
-
-
1. Getting Started
-
2. Sending Notifications to Wearable Devices
-
Stacking notifications4m 35s
-
3. Creating Wearable Apps
-
Creating a wearable app4m 13s
-
Asking for confirmations13m 1s
-
-
4. Communicating between Devices
-
5. Packaging an App for Distribution
-
Conclusion
-
Next steps1m 43s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Sending a message from the watch