Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Latest commit

 

History

History
 
 

DataLayer

Android DataLayer Sample

This sample demonstrates how to work with a WearableListenerService, to produce and consume DataEvents and effectively work with the DataLayer.

Introduction

This sample demonstrates how to make a handheld and an Wear device communicate using the DataClient. It does this by sending a picture between connected devices.

An Activity is being used for both the connected devices which implement their parts of the required interfaces using Jetpack Compose.

It showcases how to use an WearableListenerService to consume DataEvents as well as implementations for various required listeners when using the DataClient, MessageClient and NodeClient.

Pre-requisites

  • Android SDK 32

Screenshots

Screenshot Screenshot

Getting Started

This sample uses the Gradle build system. To build this project, use the "gradlew build" command or use "Import Project" in Android Studio.

Support

If you've found an error in this sample, please file an issue in the issue tracker.

Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.