Hello Message - NativeNov 24, 2016

Hello Message sample application displays simple text interactions between the Host device and the Gear device using Accessory SDK.This sample application is a companion type and is provided in two types.

Provider (Android) and Consumer (Gear)

Figure 1 Hello Message - Provider (Android) and Consumer (Gear)
Figure 1 Hello Message - Provider (Android) and Consumer (Gear)

The sample application has two parts:

  • HelloMessageProvider

    • Works in the Host device, but has no UI.

    • Replies to a receiving command from the Gear device with a current time stamp.

  • HelloMessageConsumer

    • Works in the Gear device and has a UI.

    • Initiates to find a Provider and sends commands to the Host device.

    • Shows a received response to user.

Provider (Gear) and Consumer (Android)

Figure 2 Hello Message - Provider (Gear) and Consumer (Android)
Figure 2 Hello Message - Provider (Gear) and Consumer (Android)

The sample application has two parts:

  • HelloMessageProvider

    • Works in a Gear device.

    • Replies to a receiving command from Host device with current time stamp.

  • HelloMessageConsumer

    • Works in the Host device and has a UI.

    • Initiates to find a Provider and sends commands to the Gear device.

    • Shows a received response to user.