• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright 2013 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9     http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17
18<!-- the versionCode is an integer representation of this version of your application.  New
19     versions get higher numbers, so the upgrade system can avoid dealing with the ambiguity
20     of "1.9" vs "1.10".  versionName, on the other hand, can be whatever you want, as the code
21     that handles upgrading Android apps between versions on your device just ignores it.-->
22<manifest xmlns:android="http://schemas.android.com/apk/res/android"
23    package="com.example.android.advancedimmersivemode"
24    android:versionCode="1"
25    android:versionName="1.0">
26
27    <!-- This sample is to demonstrate features released in API 19.
28         So while it would technically run on an earlier version of Android,
29         there wouldn't be much point) -->
30    <!-- Min/target SDK versions (<uses-sdk>) managed by build.gradle -->
31    <!-- allowBackup declares if the app can be part of device-wide backups such as "adb backup" -->
32    <!-- theme is a way of applying UI decisions across your entire application.  You can also
33         define it on a per-application basis. -->
34    <application
35        android:allowBackup="true"
36        android:label="@string/app_name"
37        android:icon="@drawable/ic_launcher"
38        android:theme="@style/AppTheme">
39
40        <!-- Every activity needs its own Manifest element.  The intent-filter contained in the
41             element declares the intents that can be used to activate this Activity.  For instance,
42             the one below flags this Activity as a "main" entry point of this app, and suitable
43             for creating a shortcut to in the Launcher.  If you wanted your app to have 5
44             different Activities available in the launcher, you could just make 5 activities
45             with that intent filter.  Please don't do that.  Just because it's a good example
46             doesn't mean it's a good idea. -->
47        <activity android:name=".MainActivity"
48                  android:label="@string/app_name"
49                  android:uiOptions="splitActionBarWhenNarrow">
50            <intent-filter>
51                <action android:name="android.intent.action.MAIN" />
52                <category android:name="android.intent.category.LAUNCHER" />
53            </intent-filter>
54        </activity>
55    </application>
56</manifest>
57