Game Development Reference
In-Depth Information
Context Stream
The Android Wear OS is a card-based system, which means that the UI is a vertical stream
of cards that appear automatically based on time, location, and many other user activities
and interests.
When using your Android smartphone or tablet you see all the “Google Now” cards showing
on your screen. With Android Wear, you see only one card at a time and you scroll only
vertically between cards. Figure 11-3 shows some examples of Android Wear cards.
Figure 11-3. Samsung Gear Live Android Wear cards
You can develop full-screen apps for Android Wear; however, Google encourages
developing apps that can be easily integrate with the Context Stream. This means that one
of the starting points when developing for wearables is to learn how to incorporate the cards
generated by your app into the existing Android Wear Context Stream. Let's consider how
to do this.
Cue Card
As we said earlier you can give vocal commands to your Android wearable device by
beginning with “Okay, Google” and then dictating the action you would like your wearable or
connected smartphone/tablet to execute. When you use the “Okay, Google” vocal command
you are actually using a “Cue Card.”
The Cue Card recognizes and executes a certain task, based on a vocal command.
Technically what happens is that the Cue Card understands the vocal command and
searches for an app that can be matched to the command requested; it then executes
that app.
Figure 11-4 shows how the “Okay, Google” command is sent to the Samsung Gear Live
Android Wear device.
 
Search WWH ::




Custom Search