Hello Message - Native

Nov 24, 2016

HelloMessage_Native.zip
(458KB)

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

Provider (Android) and Consumer (Galaxy Watch)

Figure 1 Hello Message - Provider (Android) and Consumer (Galaxy Watch)

The sample application has two parts:

  • HelloMessageProvider

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

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

  • HelloMessageConsumer

    • Works in the Galaxy Watch device and has a UI.

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

    • Shows a received response to user.

Provider (Galaxy Watch) and Consumer (Android)

Figure 2 Hello Message - Provider (Galaxy Watch) and Consumer (Android)

The sample application has two parts:

  • HelloMessageProvider

    • Works in a Galaxy Watch 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 Galaxy Watch device.

    • Shows a received response to user.