• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="25" />
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.wearable.standalone"
33            android:value="false" />
34
35        <meta-data
36                android:name="com.google.android.gms.version"
37                android:value="@integer/google_play_services_version" />
38
39        <service
40                android:name=".DataLayerListenerService" >
41            <intent-filter>
42                <!-- listeners receive events that match the action and data filters -->
43                <action android:name="com.google.android.gms.wearable.DATA_CHANGED" />
44                <data android:scheme="wear" android:host="*" android:pathPrefix="/count"/>
45            </intent-filter>
46            <intent-filter>
47                <action android:name="com.google.android.gms.wearable.MESSAGE_RECEIVED" />
48                <data android:scheme="wear" android:host="*" android:pathPrefix="/start-activity"/>
49            </intent-filter>
50        </service>
51        <activity
52            android:name=".MainActivity"
53            android:label="@string/app_name">
54            <intent-filter>
55                <action android:name="android.intent.action.MAIN"/>
56                <category android:name="android.intent.category.LAUNCHER"/>
57            </intent-filter>
58            <intent-filter>
59                <action android:name="com.example.android.wearable.datalayer.EXAMPLE"/>
60                <category android:name="android.intent.category.DEFAULT"/>
61            </intent-filter>
62        </activity>
63    </application>
64</manifest>