Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.google Update packaging.yaml Sep 2, 2019
Application Adds DataLayer sample to WearOS repo. Apr 3, 2019
Wearable Adds DataLayer sample to WearOS repo. Apr 3, 2019
gradle/wrapper
screenshots
README.md Revises README and removes unneeded files. Jun 10, 2019
build.gradle Adds DataLayer sample to WearOS repo. Apr 3, 2019
gradle.properties Adds DataLayer sample to WearOS repo. Apr 3, 2019
gradlew Adds DataLayer sample to WearOS repo. Apr 3, 2019
gradlew.bat Adds DataLayer sample to WearOS repo. Apr 3, 2019
settings.gradle

README.md

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 DataApi. 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.

It showcases how to use an WearableListenerService to consume DataEvents as well as implementations for various required listeners when using the DataApi, MessageApi and NodeApi.

Pre-requisites

  • Android SDK 28
  • Android Build Tools v28.0.3
  • Android Support Repository

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: https://github.com/googlesamples/android-DataLayer

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.

You can’t perform that action at this time.