1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 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<manifest xmlns:android="http://schemas.android.com/apk/res/android"
17          package="com.example.android.wearable.wear.alwayson">
18
19    <uses-permission android:name="android.permission.WAKE_LOCK" />
20    <uses-permission android:name="com.android.alarm.permission.SET_ALARM"/>
21
22    <uses-feature android:name="android.hardware.type.watch" />
23
24    <application
25        android:allowBackup="false"
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="true" />
32
33        <!--If you want your app to run on pre-22, then set required to false -->
34        <uses-library android:name="com.google.android.wearable" android:required="false" />
35
36        <!--
37            To update the screen more than once per minute in ambient mode, developers should set
38            the launch mode for the activity to single instance. Otherwise, the AlarmManager launch
39            intent will open a new activity every time the Alarm is triggered rather than reusing
40            the same (already active) Activity.
41        -->
42        <activity android:name="com.example.android.wearable.wear.alwayson.MainActivity"
43            android:label="@string/app_name"
44            android:launchMode="singleInstance"
45            android:configChanges="orientation|keyboardHidden"
46            android:exported="true">
47            <intent-filter>
48                <action android:name="android.intent.action.MAIN" />
49                <category android:name="android.intent.category.LAUNCHER" />
50            </intent-filter>
51        </activity>
52
53    </application>
54</manifest>
55