]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/AndroidManifest.xml
a0550338affa1f9e669825e9b8df9acf35e6db0f
[PrivacyBrowserAndroid.git] / app / src / main / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright 2015-2016 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     package="com.stoutner.privacybrowser" >
23
24     <!-- Required to load websites. -->
25     <uses-permission android:name="android.permission.INTERNET" />
26
27     <!-- Required to create homescreen shortcuts. -->
28     <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
29
30
31     <!-- Support Chromebooks that don't have a touch screen. -->
32     <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
33
34
35     <!-- For API >= 23, app data is automatically backed up to Google cloud servers unless `android:allowBackup="false"` and `android:fullBackupContent="false"` is set. -->
36     <application
37         android:label="@string/privacy_browser"
38         android:icon="@mipmap/privacy_browser"
39         android:theme="@style/PrivacyBrowser"
40         android:allowBackup="false"
41         android:fullBackupContent="false" >
42
43         <!-- If `android:name="android.webkit.WebView.MetricsOptOut"` is not `true` then WebViews will upload metrics to Google.
44             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         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes, which preserves scroll location in the WebView.
50             `android:launchMode="singleTask"` makes the app launch in a new task instead of inside the task of the program that sends it an intent.
51             It also makes it reuse an existing Privacy Browser activity if available instead of launching a new one.
52             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot. -->
53         <activity
54             android:name=".MainWebViewActivity"
55             android:label="@string/privacy_browser"
56             android:configChanges="orientation|screenSize"
57             android:launchMode="singleTask"
58             android:persistableMode="persistNever" >
59
60             <intent-filter>
61                 <action android:name="android.intent.action.MAIN" />
62                 <category android:name="android.intent.category.LAUNCHER" />
63             </intent-filter>
64
65             <!-- `android.intent.action.VIEW` with the two data schemes enables processing of web intents. -->
66             <intent-filter>
67                 <action android:name="android.intent.action.VIEW" />
68                 <category android:name="android.intent.category.BROWSABLE" />
69                 <category android:name="android.intent.category.DEFAULT" />
70                 <data android:scheme="http" />
71                 <data android:scheme="https" />
72             </intent-filter>
73         </activity>
74
75
76         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
77             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot. -->
78         <activity
79             android:name=".BookmarksActivity"
80             android:label="@string/bookmarks"
81             android:theme="@style/PrivacyBrowser.SecondaryActivity"
82             android:parentActivityName=".MainWebViewActivity"
83             android:configChanges="orientation|screenSize"
84             android:persistableMode="persistNever" />
85
86         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
87             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot. -->
88         <activity
89             android:name=".BookmarksDatabaseViewActivity"
90             android:label="@string/bookmarks_database_view"
91             android:theme="@style/PrivacyBrowser.SecondaryActivity"
92             android:parentActivityName=".BookmarksActivity"
93             android:configChanges="orientation|screenSize"
94             android:persistableMode="persistNever" />
95
96         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
97             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot. -->
98         <activity
99             android:name=".SettingsActivity"
100             android:label="@string/privacy_browser_settings"
101             android:theme="@style/Settings"
102             android:parentActivityName=".MainWebViewActivity"
103             android:configChanges="orientation|screenSize"
104             android:persistableMode="persistNever" />
105
106         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
107             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot. -->
108         <activity
109             android:name=".GuideActivity"
110             android:label="@string/privacy_browser_guide"
111             android:theme="@style/PrivacyBrowser.SecondaryActivity"
112             android:parentActivityName=".MainWebViewActivity"
113             android:configChanges="orientation|screenSize"
114             android:persistableMode="persistNever" />
115
116         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
117             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot. -->
118         <activity
119             android:name=".AboutActivity"
120             android:label="@string/about_privacy_browser"
121             android:theme="@style/PrivacyBrowser.SecondaryActivity"
122             android:parentActivityName=".MainWebViewActivity"
123             android:configChanges="orientation|screenSize"
124             android:persistableMode="persistNever" />
125     </application>
126 </manifest>