]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/AndroidManifest.xml
Create an "Add to Home Screen" AlertDialog.
[PrivacyBrowserAndroid.git] / app / src / main / AndroidManifest.xml
index 6e2fc2d8686ff607e41be5543a61bc4201f11f78..85d0b27363ff3f0d77e791a35239bdc4f97d0038 100644 (file)
@@ -4,23 +4,31 @@
 
     <uses-permission android:name="android.permission.INTERNET" />
 
+    <!-- Required to create homescreen shortcuts. -->
+    <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
+
     <application
         android:allowBackup="false"
         android:fullBackupContent="false"
         android:icon="@mipmap/ic_launcher"
         android:label="@string/privacy_browser"
         android:theme="@style/AppTheme" >
+
+        <!-- android:configChanges="orientation|screenSize" makes the app not reload when the orientation changes. -->
+        <!-- android:windowSoftInputMode="stateAlwaysHidden" hides the keyboard when the app starts. -->
         <activity
             android:name=".Webview"
             android:configChanges="orientation|screenSize"
-            android:label="@string/privacy_browser"
-            android:windowSoftInputMode="stateAlwaysHidden">
+            android:label="@string/privacy_browser" >
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
                 <category android:name="android.intent.category.LAUNCHER" />
             </intent-filter>
+
+            <!-- android.intent.action.VIEW with the two schemes enables processing of web intents. -->
             <intent-filter>
                 <action android:name="android.intent.action.VIEW" />
+                <category android:name="android.intent.category.BROWSABLE" />
                 <category android:name="android.intent.category.DEFAULT" />
                 <data android:scheme="http" />
                 <data android:scheme="https" />