1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2014 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<manifest xmlns:android="http://schemas.android.com/apk/res/android" 18 package="com.example.android.wearable.datalayer" > 19 20 <uses-permission android:name="android.permission.WAKE_LOCK" /> 21 22 <uses-feature android:name="android.hardware.type.watch" /> 23 24 <application 25 android:allowBackup="true" 26 android:icon="@drawable/ic_launcher" 27 android:label="@string/app_name" 28 android:theme="@android:style/Theme.DeviceDefault"> 29 30 <meta-data 31 android:name="com.google.android.wearable.standalone" 32 android:value="false" /> 33 34 <meta-data 35 android:name="com.google.android.gms.version" 36 android:value="@integer/google_play_services_version" /> 37 38 <service 39 android:name=".DataLayerListenerService" > 40 <intent-filter> 41 <!-- listeners receive events that match the action and data filters --> 42 <action android:name="com.google.android.gms.wearable.DATA_CHANGED" /> 43 <data android:scheme="wear" android:host="*" android:pathPrefix="/count"/> 44 </intent-filter> 45 <intent-filter> 46 <action android:name="com.google.android.gms.wearable.MESSAGE_RECEIVED" /> 47 <data android:scheme="wear" android:host="*" android:pathPrefix="/start-activity"/> 48 </intent-filter> 49 </service> 50 <activity 51 android:name=".MainActivity" 52 android:label="@string/app_name"> 53 <intent-filter> 54 <action android:name="android.intent.action.MAIN"/> 55 <category android:name="android.intent.category.LAUNCHER"/> 56 </intent-filter> 57 <intent-filter> 58 <action android:name="com.example.android.wearable.datalayer.EXAMPLE"/> 59 <category android:name="android.intent.category.DEFAULT"/> 60 </intent-filter> 61 </activity> 62 </application> 63</manifest> 64