Weather - HybridNov 24, 2016

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 (Gear)

Figure 1 Weather - Provider (Android) and Consumer (Gear)
Figure 1 Weather - Provider (Android) and Consumer (Gear)

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 Gear device independently

    • Replies to a receiving command from Gear device independently

  • WeatherWebApp

    • Works in Gear 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 Gear 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

Note

Please refer to the link below to package a hybrid application.
https://developer.tizen.org/community/tip-tech/packaging-hybrid-application