Home | History | Annotate | Download | only in main
      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     <uses-sdk
     24         android:minSdkVersion="21"
     25         android:targetSdkVersion="23" />
     26 
     27     <application
     28         android:allowBackup="true"
     29         android:icon="@mipmap/ic_launcher"
     30         android:label="@string/app_name"
     31         android:theme="@android:style/Theme.DeviceDefault" >
     32 
     33         <meta-data
     34             android:name="com.google.android.wearable.standalone"
     35             android:value="false" />
     36 
     37         <meta-data
     38             android:name="com.google.android.gms.version"
     39             android:value="@integer/google_play_services_version" />
     40 
     41         <!-- If you want your app to run on pre-22, then set required to false -->
     42         <uses-library
     43             android:name="com.google.android.wearable"
     44             android:required="false" />
     45 
     46         <activity
     47             android:name=".MainWearActivity"
     48             android:label="@string/app_name"
     49             android:launchMode="singleInstance">
     50             <intent-filter>
     51                 <action android:name="android.intent.action.MAIN" />
     52 
     53                 <category android:name="android.intent.category.LAUNCHER" />
     54             </intent-filter>
     55         </activity>
     56 
     57         <activity
     58             android:name=".RequestPermissionOnPhoneActivity"
     59             android:label="@string/title_activity_request_permission_on_phone"
     60             android:theme="@android:style/Theme.DeviceDefault.Light">
     61         </activity>
     62 
     63         <service
     64             android:name=".IncomingRequestWearService"
     65             android:enabled="true"
     66             android:exported="true" >
     67             <intent-filter>
     68                 <action android:name="com.google.android.gms.wearable.MESSAGE_RECEIVED" />
     69                 <data android:scheme="wear" android:host="*" android:pathPrefix="/"/>
     70             </intent-filter>
     71         </service>
     72     </application>
     73 </manifest>