This sample demonstrates how to work with a WearableListenerService, to produce and consume DataEvents and effectively work with the DataLayer.
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.
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.
- Android SDK 28
- Android Build Tools v29.0.2
- Android Support Repository
This sample uses the Gradle build system. To build this project, use the "gradlew build" command or use "Import Project" in Android Studio.
- Stack Overflow: http://stackoverflow.com/questions/tagged/android
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.