Weather - Hybrid

Nov 24, 2016

Weather_Hybrid.zip
(2.12MB)

The Weather sample application is a companion type application that shows how multiple Provider applications can communicate with multiple Consumer applications (WebApp and Widget) using the Accessory SDK.

Provider (Android) and Consumer (Galaxy Watch)

Figure 1 Weather - Provider (Android) and Consumer (Galaxy Watch)

This sample application has three parts:

  • WeatherProvider

    • Works in Host device and has UI

    • Includes two Providers having different Accessory Service Profiles

    • Accepts a receiving service connection request from Galaxy Watch device independently

    • Replies to a receiving command from Galaxy Watch device independently

  • WeatherWebApp

    • Works in Galaxy Watch device and has UI

    • Initiates a service connection request and sends commands to Host device independently

    • Shows a received response to user independently

    • Shows the weather information of random city among stored cities

  • WeatherWidget

    • Works in Galaxy Watch device and has UI

    • Initiates a service connection request and sends commands to Host device independently

    • Shows a received response to the user independently

    • Shows the weather information of selected cities

    • Shows to user the screen to add the city