Join David Gassner for an in-depth discussion in this video Adding wearable features to a notification, part of Building Apps for Android Wear Devices.
- There are certain notification features…that you can only apply to wearable devices.…These are encapsulated in a class called WearableExtender.…I'm going to give you an example of something you can do…on a watch but not on a cell phone,…display a specific photographic background…behind a notification.…I'll start in the send notification method…and I'm working into project wearable features.…I'll place this code here after the code…that creates the bigTextStyle.…
My first goal is to get the resource ID…of a particular image.…The drawable folder in the resources has four photos,…one for each of the hotels in London,…Hong Kong, Paris and San Francisco…and these are referenced in the DataProvider.…For example, London refers to London_photo as its image.…So I'm going to add code here, to get the resource ID,…based on the currently selected hotel.…I'll declare an integer that I'll name backgroundId…and I'll get its value using the code getResources…and then from there I'll call getIdentifier.…
This takes three arguments,…
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: Adding wearable features to a notification