]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blob - app/src/main/AndroidManifest.xml
Create an "Add to Home Screen" AlertDialog.
[PrivacyBrowserAndroid.git] / app / src / main / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3     package="com.stoutner.privacybrowser" >
4
5     <uses-permission android:name="android.permission.INTERNET" />
6
7     <!-- Required to create homescreen shortcuts. -->
8     <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
9
10     <application
11         android:allowBackup="false"
12         android:fullBackupContent="false"
13         android:icon="@mipmap/ic_launcher"
14         android:label="@string/privacy_browser"
15         android:theme="@style/AppTheme" >
16
17         <!-- android:configChanges="orientation|screenSize" makes the app not reload when the orientation changes. -->
18         <!-- android:windowSoftInputMode="stateAlwaysHidden" hides the keyboard when the app starts. -->
19         <activity
20             android:name=".Webview"
21             android:configChanges="orientation|screenSize"
22             android:label="@string/privacy_browser" >
23             <intent-filter>
24                 <action android:name="android.intent.action.MAIN" />
25                 <category android:name="android.intent.category.LAUNCHER" />
26             </intent-filter>
27
28             <!-- android.intent.action.VIEW with the two schemes enables processing of web intents. -->
29             <intent-filter>
30                 <action android:name="android.intent.action.VIEW" />
31                 <category android:name="android.intent.category.BROWSABLE" />
32                 <category android:name="android.intent.category.DEFAULT" />
33                 <data android:scheme="http" />
34                 <data android:scheme="https" />
35             </intent-filter>
36         </activity>
37     </application>
38
39 </manifest>