]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/AndroidManifest.xml
Refine progressBar height. Create onReceivedError toast.
[PrivacyBrowserAndroid.git] / app / src / main / AndroidManifest.xml
index 7774f930fa936f6c18f83db132306d6803d481cd..1f558d1da41399a1ca148cc4ae8264fb38d96bad 100644 (file)
@@ -3,6 +3,9 @@
     package="com.stoutner.privacybrowser" >
 
     <uses-permission android:name="android.permission.INTERNET" />
+    <!-- READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE are required to download files. -->
+    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
+    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
 
     <application
         android:allowBackup="false"
         android:icon="@mipmap/ic_launcher"
         android:label="@string/privacy_browser"
         android:theme="@style/AppTheme" >
+
+        <!-- configChanges orientation and screenSize makes the app not reload when the orientation changes. -->
+        <!-- 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">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
                 <category android:name="android.intent.category.LAUNCHER" />
             </intent-filter>
+
+            <!-- android.intent.action.VIEW with the 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" />