README.md
1Android DataLayer Sample
2===================================
3
4This sample demonstrates how to work with a WearableListenerService,
5to produce and consume DataEvents and effectively work with the DataLayer.
6
7Introduction
8------------
9
10This sample demonstrates how to make a handheld and an Android Wear device communicate
11using the [DataApi][2].
12It does this by sending a picture between connected devices.
13
14An Activity is being used for both the connected devices which implement their parts of
15the required interfaces.
16
17It showcases how to use an [WearableListenerService][1] to consume DataEvents
18as well as implementations for various required listeners when using the [DataApi][2],
19[MessageApi][3] and [NodeApi][4].
20
21[1]: https://developer.android.com/reference/com/google/android/gms/wearable/WearableListenerService.html
22[2]: https://developer.android.com/reference/com/google/android/gms/wearable/DataApi.html
23[3]: https://developer.android.com/reference/com/google/android/gms/wearable/MessageApi.html
24[4]: https://developer.android.com/reference/com/google/android/gms/wearable/NodeApi.html
25
26Pre-requisites
27--------------
28
29- Android SDK v21
30- Android Build Tools v21.1.1
31- Android Support Repository
32
33Screenshots
34-------------
35
36<img src="screenshots/phone_image.png" height="400" alt="Screenshot"/> <img src="screenshots/wearable_background_image.png" height="400" alt="Screenshot"/>
37
38Getting Started
39---------------
40
41This sample uses the Gradle build system. To build this project, use the
42"gradlew build" command or use "Import Project" in Android Studio.
43
44Support
45-------
46
47- Google+ Community: https://plus.google.com/communities/105153134372062985968
48- Stack Overflow: http://stackoverflow.com/questions/tagged/android
49
50If you've found an error in this sample, please file an issue:
51https://github.com/googlesamples/android-DataLayer
52
53Patches are encouraged, and may be submitted by forking this project and
54submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.
55
56License
57-------
58
59Copyright 2014 The Android Open Source Project, Inc.
60
61Licensed to the Apache Software Foundation (ASF) under one or more contributor
62license agreements. See the NOTICE file distributed with this work for
63additional information regarding copyright ownership. The ASF licenses this
64file to you under the Apache License, Version 2.0 (the "License"); you may not
65use this file except in compliance with the License. You may obtain a copy of
66the License at
67
68http://www.apache.org/licenses/LICENSE-2.0
69
70Unless required by applicable law or agreed to in writing, software
71distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
72WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
73License for the specific language governing permissions and limitations under
74the License.
75