]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/AndroidManifest.xml
Rename the activities.
[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://privacybrowser.stoutner.com/>.
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     <uses-permission android:name="android.permission.INTERNET" />
25
26     <!-- Required to create homescreen shortcuts. -->
27     <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
28
29     <application
30         android:allowBackup="false"
31         android:fullBackupContent="false"
32         android:icon="@mipmap/ic_launcher"
33         android:label="@string/privacy_browser"
34         android:theme="@style/AppTheme" >
35
36         <!-- android:configChanges="orientation|screenSize" makes the app not reload when the orientation changes, which preserves scroll location in the WebView. -->
37         <!-- android:launchMode="singleTask" makes the app launch in a new task instead of inside the task of the program that sends it an intent.
38             It also makes it reuse an existing Privacy Browser activity if available instead of launching a new one. -->
39         <activity
40             android:name=".MainWebViewActivity"
41             android:configChanges="orientation|screenSize"
42             android:label="@string/privacy_browser"
43             android:launchMode="singleTask">
44
45             <intent-filter>
46                 <action android:name="android.intent.action.MAIN" />
47                 <category android:name="android.intent.category.LAUNCHER" />
48             </intent-filter>
49
50             <!-- android.intent.action.VIEW with the two data schemes enables processing of web intents. -->
51             <intent-filter>
52                 <action android:name="android.intent.action.VIEW" />
53                 <category android:name="android.intent.category.BROWSABLE" />
54                 <category android:name="android.intent.category.DEFAULT" />
55                 <data android:scheme="http" />
56                 <data android:scheme="https" />
57             </intent-filter>
58         </activity>
59
60         <activity
61             android:name=".SettingsActivity"
62             android:label="@string/privacy_browser_settings"
63             android:parentActivityName=".MainWebViewActivity" >
64
65             <!-- android.support.PARENT_ACTIVITY is necessary for API <= 15. -->
66             <meta-data
67                 android:name="android.support.PARENT_ACTIVITY"
68                 android:value=".MainWebViewActivity" />
69         </activity>
70
71     </application>
72
73 </manifest>