]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/AndroidManifest.xml
Add the ability to create and edit bookmark folders.
[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     <!-- For API >= 23, app data is automatically backed up to Google cloud servers unless `android:allowBackup="false"` and `android:fullBackupContent="false"` is set. -->
32     <application
33         android:label="@string/privacy_browser"
34         android:icon="@mipmap/privacy_browser"
35         android:theme="@style/PrivacyBrowser"
36         android:allowBackup="false"
37         android:fullBackupContent="false" >
38
39         <!-- If `android:name="android.webkit.WebView.MetricsOptOut"` is not `true` then WebViews will upload metrics to Google.
40             https://developer.android.com/reference/android/webkit/WebView.html -->
41         <meta-data
42             android:name="android.webkit.WebView.MetricsOptOut"
43             android:value="true" />
44
45         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes, which preserves scroll location in the WebView.
46             `android:launchMode="singleTask"` makes the app launch in a new task instead of inside the task of the program that sends it an intent.
47             It also makes it reuse an existing Privacy Browser activity if available instead of launching a new one.
48             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot. -->
49         <activity
50             android:name=".MainWebViewActivity"
51             android:label="@string/privacy_browser"
52             android:configChanges="orientation|screenSize"
53             android:launchMode="singleTask"
54             android:persistableMode="persistNever" >
55
56             <intent-filter>
57                 <action android:name="android.intent.action.MAIN" />
58                 <category android:name="android.intent.category.LAUNCHER" />
59             </intent-filter>
60
61             <!-- `android.intent.action.VIEW` with the two data schemes enables processing of web intents. -->
62             <intent-filter>
63                 <action android:name="android.intent.action.VIEW" />
64                 <category android:name="android.intent.category.BROWSABLE" />
65                 <category android:name="android.intent.category.DEFAULT" />
66                 <data android:scheme="http" />
67                 <data android:scheme="https" />
68             </intent-filter>
69         </activity>
70
71
72         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
73             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot. -->
74         <activity
75             android:name=".BookmarksActivity"
76             android:label="@string/bookmarks"
77             android:theme="@style/PrivacyBrowser.SecondaryActivity"
78             android:parentActivityName=".MainWebViewActivity"
79             android:configChanges="orientation|screenSize"
80             android:persistableMode="persistNever" />
81
82         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
83             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot. -->
84         <activity
85             android:name=".BookmarksDatabaseViewActivity"
86             android:label="@string/bookmarks_database_view"
87             android:theme="@style/PrivacyBrowser.SecondaryActivity"
88             android:parentActivityName=".BookmarksActivity"
89             android:configChanges="orientation|screenSize"
90             android:persistableMode="persistNever" />
91
92         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
93             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot. -->
94         <activity
95             android:name=".SettingsActivity"
96             android:label="@string/privacy_browser_settings"
97             android:theme="@style/Settings"
98             android:parentActivityName=".MainWebViewActivity"
99             android:configChanges="orientation|screenSize"
100             android:persistableMode="persistNever" />
101
102         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
103             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot. -->
104         <activity
105             android:name=".GuideActivity"
106             android:label="@string/privacy_browser_guide"
107             android:theme="@style/PrivacyBrowser.SecondaryActivity"
108             android:parentActivityName=".MainWebViewActivity"
109             android:configChanges="orientation|screenSize"
110             android:persistableMode="persistNever" />
111
112         <!-- `android:configChanges="orientation|screenSize"` makes the activity not reload when the orientation changes.
113             `android:persistableMode="persistNever"` removes Privacy Browser from the recents screen on a device reboot. -->
114         <activity
115             android:name=".AboutActivity"
116             android:label="@string/about_privacy_browser"
117             android:theme="@style/PrivacyBrowser.SecondaryActivity"
118             android:parentActivityName=".MainWebViewActivity"
119             android:configChanges="orientation|screenSize"
120             android:persistableMode="persistNever" />
121     </application>
122 </manifest>