Architecture

The following section describes all the parts that make up the Smart Watch 2 architecture – the host application, Smart Connect, and the Smart Accessory application.

Applications

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:

Architecture overview of the Smart Extension apps with accessory examples (SmartWatch 2 and Smart Wireless Headset pro).

Architecture overview of the Smart Extension apps with accessory examples (SmartWatch 2 and Smart Wireless Headset pro).

System overview of the phone, accessory, and the app extensions. Note that each accessory has its own host app and that one app extension can communicate with multiple host apps.

System overview of the phone, accessory, and the app. Note that each accessory has its own host app and that one app can communicate with multiple host apps.

Host application

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

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.