Home | History | Annotate | Download | only in Wearable
      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-sdk android:minSdkVersion="20"
     21               android:targetSdkVersion="23" />
     22 
     23     <uses-feature android:name="android.hardware.type.watch" />
     24 
     25     <application
     26             android:allowBackup="true"
     27             android:icon="@drawable/ic_launcher"
     28             android:label="@string/app_name"
     29             android:theme="@android:style/Theme.DeviceDefault">
     30 
     31         <meta-data
     32                 android:name="com.google.android.gms.version"
     33                 android:value="@integer/google_play_services_version" />
     34 
     35         <service
     36                 android:name=".DataLayerListenerService" >
     37             <intent-filter>
     38                 <!-- listeners receive events that match the action and data filters -->
     39                 <action android:name="com.google.android.gms.wearable.DATA_CHANGED" />
     40                 <data android:scheme="wear" android:host="*" android:pathPrefix="/count"/>
     41             </intent-filter>
     42             <intent-filter>
     43                 <action android:name="com.google.android.gms.wearable.MESSAGE_RECEIVED" />
     44                 <data android:scheme="wear" android:host="*" android:pathPrefix="/start-activity"/>
     45             </intent-filter>
     46         </service>
     47         <activity
     48             android:name=".MainActivity"
     49             android:label="@string/app_name">
     50             <intent-filter>
     51                 <action android:name="android.intent.action.MAIN"/>
     52                 <category android:name="android.intent.category.LAUNCHER"/>
     53             </intent-filter>
     54             <intent-filter>
     55                 <action android:name="com.example.android.wearable.datalayer.EXAMPLE"/>
     56                 <category android:name="android.intent.category.DEFAULT"/>
     57             </intent-filter>
     58         </activity>
     59     </application>
     60 </manifest>