]> gitweb.stoutner.com Git - PrivacyCell.git/blob - app/src/main/AndroidManifest.xml
Create the Day/Night theme.
[PrivacyCell.git] / app / src / main / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
7
8   Privacy Cell is free software: you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation, either version 3 of the License, or
11   (at your option) any later version.
12
13   Privacy Cell is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>. -->
20
21 <!-- Install location `auto` allows users to move Privacy Browser to an SD card if desired. -->
22 <manifest
23     xmlns:android="http://schemas.android.com/apk/res/android"
24     package="com.stoutner.privacycell"
25     android:installLocation="auto" >
26
27     <!-- Required to read cell network information. -->
28     <uses-permission android:name="android.permission.READ_PHONE_STATE" />
29
30     <!-- Support Chromebooks that don't have a touch screen. -->
31     <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
32
33     <!-- App data is automatically backed up to Google cloud servers unless `android:allowBackup="false"` and `android:fullBackupContent="false"` is set. TODO round icon and theme name. -->
34     <application
35         android:label="@string/privacy_cell"
36         android:icon="@mipmap/privacy_cell"
37         android:allowBackup="false"
38         android:fullBackupContent="false"
39         android:supportsRtl="true"
40         android:theme="@style/Theme.PrivacyCell" >
41
42         <!-- The label uses the short name so that it isn't truncated under the icon in the launcher on most phones.
43             The theme has to be defined here or an ugly title bar is displayed when the app launches.  TODO.
44             `android:launchMode="singleTask"` makes the app launch in a new task instead of inside the task of the program that sends it an intent.
45             It also makes it reuse an existing Privacy Cell activity if available instead of launching a new one. -->
46         <activity
47             android:name=".activities.PrivacyCell"
48             android:label="@string/cell"
49             android:launchMode="singleTask"
50             android:screenOrientation="fullUser"
51             android:exported="true" >
52
53             <intent-filter>
54                 <action android:name="android.intent.action.MAIN" />
55                 <category android:name="android.intent.category.LAUNCHER" />
56             </intent-filter>
57         </activity>
58     </application>
59 </manifest>