- The SmartWatch 2 app communicates to the hardware via the host application and Smart Connect.
SmartWatch 2 communicates with the Android device using Bluetooth. The Smart Connect and the host applications (described in the next paragraph) on the Android device handle all communication with the SmartWatch 2. The relationships between the applications can be seen below:
The host application handles all interaction with the accessory. There is one host application for each Smart Accessory. The host application uses the content providers in Smart Connect to find information about which Smart Extension apps should be available on the accessory.
Smart Connect is a framework for Android devices that manages applications and related settings for Smart Accessories. Note that for Android versions earlier than Android 4.0 the framework was called LiveWare™ Manager.
Smart Connect comes pre-installed on most Sony Xperia™ devices, but you can also download Smart Connect from Google Play. We recommend that you update to the latest version of Smart Connect on your device when developing apps.
Smart Extension apps
As previously mentioned, the Smart Extension app is the app that you “extend” to work with Smart Accessory products. The Smart Extension APIs make it possible to communicate with the Smart Accessories. For example, content such as Facebook™ updates, Twitter™ messages, missed calls and more) shown on the display of a SmartWatch is typically not part of the host application, these are actually examples of Smart Extension apps.
Keep in mind that Smart Extension apps do not actually run on the accessory itself. All extension apps run on the phone or tablet and communicate to the accessory via Bluetooth. This is important to note since a single extension app can contain classes that control both the display of the accessory and the phone or tablet, and communication between the classes can be done via Intents in the same way that standard Android does between Activities.