In this chapter, we learned about three new APIs, DataAPI
, NodeAPI
, and MessageAPIs
, and how we can use them and their associated methods to transmit information between the handheld mobile and the wearable.
Note
If, for whatever reason, the connected wearable node gets disconnected from the paired handheld device, the DataApi
class is smart enough to try sending again automatically once the connection is reestablished.
We learned about GoogleApiClient
that is responsible for establishing and handling the connection between the Android handheld and the wearable device. Then we moved on to learn about the NodeApi
class, and how we can use this to obtain a list of all nodes that are currently connected to the wearable device. Next, we learned about MessageApi
and how we can use the sendMessage()
method to send a message to the Android wearable.
Then we got acquainted with the DataApi
class, and how we can use the DataListener()
method to check for any image data being sent from the Android...