]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/AndroidManifest.xml
Create a dark theme for `BookMarksActivity` and `BookmarksDatabaseViewActivity`.
[PrivacyBrowserAndroid.git] / app / src / main / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2015-2017 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
7
8   Privacy Browser 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 Browser 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 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
22           xmlns:tools="http://schemas.android.com/tools"
23           package="com.stoutner.privacybrowser" >
24
25     <!-- Required to load websites. -->
26     <uses-permission android:name="android.permission.INTERNET" />
27
28     <!-- Required to create homescreen shortcuts. -->
29     <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
30
31
32     <!-- Support Chromebooks that don't have a touch screen. -->
33     <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
34
35
36     <!-- For API >= 23, app data is automatically backed up to Google cloud servers unless `android:allowBackup="false"` and `android:fullBackupContent="false"` is set. -->
37     <application
38         android:label="@string/privacy_browser"
39         android:icon="@mipmap/privacy_browser"
40         android:allowBackup="false"
41         android:fullBackupContent="false"
42         android:supportsRtl="true" >
43
44         <!-- If `android:name="android.webkit.WebView.MetricsOptOut"` is not `true` then `WebViews` will upload metrics to Google.  <https://developer.android.com/reference/android/webkit/WebView.html> -->
45         <meta-data
46             android:name="android.webkit.WebView.MetricsOptOut"
47             android:value="true" />
48
49         <!-- The theme has to be defined here or an ugly title bar is displayed when the app launches.
50             `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes, which preserves scroll location in the WebView.
51             `android:launchMode="singleTask"` makes the app launch in a new task instead of inside the task of the program that sends it an intent.
52             It also makes it reuse an existing Privacy Browser activity if available instead of launching a new one.
53             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
54             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
55         <activity
56             android:name=".activities.MainWebViewActivity"
57             android:label="@string/privacy_browser"
58             android:theme="@style/PrivacyBrowserLight"
59             android:configChanges="orientation|screenSize"
60             android:launchMode="singleTask"
61             android:screenOrientation="fullUser"
62             android:persistableMode="persistNever"
63             tools:ignore="UnusedAttribute" >
64
65             <intent-filter>
66                 <action android:name="android.intent.action.MAIN" />
67                 <category android:name="android.intent.category.LAUNCHER" />
68             </intent-filter>
69
70             <!-- `android.intent.action.VIEW` with the two data schemes enables processing of web intents. -->
71             <intent-filter>
72                 <action android:name="android.intent.action.VIEW" />
73                 <category android:name="android.intent.category.BROWSABLE" />
74                 <category android:name="android.intent.category.DEFAULT" />
75                 <data android:scheme="http" />
76                 <data android:scheme="https" />
77             </intent-filter>
78         </activity>
79
80
81         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
82             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
83             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
84         <activity
85             android:name=".activities.BookmarksActivity"
86             android:label="@string/bookmarks"
87             android:parentActivityName=".activities.MainWebViewActivity"
88             android:configChanges="orientation|screenSize"
89             android:screenOrientation="fullUser"
90             android:persistableMode="persistNever"
91             tools:ignore="UnusedAttribute" />
92
93         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
94             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
95             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
96         <activity
97             android:name=".activities.BookmarksDatabaseViewActivity"
98             android:label="@string/bookmarks_database_view"
99             android:parentActivityName=".activities.BookmarksActivity"
100             android:configChanges="orientation|screenSize"
101             android:screenOrientation="fullUser"
102             android:persistableMode="persistNever"
103             tools:ignore="UnusedAttribute" />
104
105         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
106             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
107             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
108         <activity
109             android:name=".activities.SettingsActivity"
110             android:label="@string/privacy_browser_settings"
111             android:parentActivityName=".activities.MainWebViewActivity"
112             android:configChanges="orientation|screenSize"
113             android:screenOrientation="fullUser"
114             android:persistableMode="persistNever"
115             tools:ignore="UnusedAttribute" />
116
117         <!-- `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
118             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
119         <activity
120             android:name=".activities.DomainsActivity"
121             android:label="@string/domains"
122             android:parentActivityName=".activities.MainWebViewActivity"
123             android:screenOrientation="fullUser"
124             android:persistableMode="persistNever"
125             tools:ignore="UnusedAttribute" />
126
127         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
128             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
129             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21.
130              `android:windowSoftInputMode="stateAlwaysHidden"` removes the keyboard from the screen, which is displayed because `ScrollViews` always focus the first `EditText` despite being told not to. -->
131         <activity
132             android:name=".activities.DomainSettingsActivity"
133             android:label="@string/domain_settings"
134             android:parentActivityName=".activities.DomainsActivity"
135             android:configChanges="orientation|screenSize"
136             android:screenOrientation="fullUser"
137             android:windowSoftInputMode="stateAlwaysHidden"
138             android:persistableMode="persistNever"
139             tools:ignore="UnusedAttribute" />
140
141         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
142             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
143             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
144         <activity
145             android:name=".activities.GuideActivity"
146             android:label="@string/privacy_browser_guide"
147             android:parentActivityName=".activities.MainWebViewActivity"
148             android:configChanges="orientation|screenSize"
149             android:screenOrientation="fullUser"
150             android:persistableMode="persistNever"
151             tools:ignore="UnusedAttribute" />
152
153         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
154             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot.
155             `tools:ignore="unusedAttribute"` removes the lint warning that `persistableMode` does not apply to API < 21. -->
156         <activity
157             android:name=".activities.AboutActivity"
158             android:label="@string/about_privacy_browser"
159             android:parentActivityName=".activities.MainWebViewActivity"
160             android:configChanges="orientation|screenSize"
161             android:screenOrientation="fullUser"
162             android:persistableMode="persistNever"
163             tools:ignore="UnusedAttribute" />
164     </application>
165 </manifest>