Hello Accessory - Native

Nov 24, 2016

HelloAccessory_Native.zip
(455KB)

Hello Accessory 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 Accessory - Provider (Android) and Consumer (Galaxy Watch)

This sample application has two parts:

  • HelloAccessoryProvider

    • Works in Host device, but has no UI.

    • Accepts a receiving service connection request from the Galaxy Watch device.

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

  • HelloAccessoryConsumer

    • Works in Galaxy Watch device and has UI.

    • Initiates service connection request and send command to Host device.

    • Shows a received response to user.

Provider (Galaxy Watch) and Consumer (Android)

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

This sample application has two parts:

  • HelloAccessoryProvider

    • Works in Galaxy Watch device.

    • Accepts a receiving service connection request from Host device.

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

  • HelloAccessoryConsumer

    • Works in Galaxy Watch device and has UI.

    • Initiates service connection request and sends command to Galaxy Watch device.

    • Shows a received response to user.