• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright 2015 Google Inc. All rights reserved.
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       http://www.apache.org/licenses/LICENSE-2.0
8  Unless required by applicable law or agreed to in writing, software
9  distributed under the License is distributed on an "AS IS" BASIS,
10  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11  See the License for the specific language governing permissions and
12  limitations under the License.
13  -->
14
15<manifest xmlns:android="http://schemas.android.com/apk/res/android"
16    package="com.example.android.wearable.runtimepermissions" >
17
18    <uses-feature android:name="android.hardware.type.watch" />
19
20    <uses-permission android:name="android.permission.WAKE_LOCK" />
21    <uses-permission android:name="android.permission.BODY_SENSORS" />
22
23    <application
24        android:allowBackup="true"
25        android:icon="@mipmap/ic_launcher"
26        android:label="@string/app_name"
27        android:theme="@android:style/Theme.DeviceDefault" >
28
29        <meta-data
30            android:name="com.google.android.wearable.standalone"
31            android:value="false" />
32
33        <meta-data
34            android:name="com.google.android.gms.version"
35            android:value="@integer/google_play_services_version" />
36
37        <!-- If you want your app to run on pre-22, then set required to false -->
38        <uses-library
39            android:name="com.google.android.wearable"
40            android:required="false" />
41
42        <activity
43            android:name=".MainWearActivity"
44            android:label="@string/app_name"
45            android:launchMode="singleInstance">
46            <intent-filter>
47                <action android:name="android.intent.action.MAIN" />
48
49                <category android:name="android.intent.category.LAUNCHER" />
50            </intent-filter>
51        </activity>
52
53        <activity
54            android:name=".RequestPermissionOnPhoneActivity"
55            android:label="@string/title_activity_request_permission_on_phone"
56            android:theme="@android:style/Theme.DeviceDefault.Light">
57        </activity>
58
59        <service
60            android:name=".IncomingRequestWearService"
61            android:enabled="true"
62            android:exported="true" >
63            <intent-filter>
64                <action android:name="com.google.android.gms.wearable.MESSAGE_RECEIVED" />
65                <data android:scheme="wear" android:host="*" android:pathPrefix="/"/>
66            </intent-filter>
67        </service>
68    </application>
69</manifest>