aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Miller <paulmiller@google.com>2015-07-23 15:29:50 -0700
committerPaul Miller <paulmiller@google.com>2015-07-23 15:32:46 -0700
commit005e202cec29b94fbaf2767acf13d46ee102578d (patch)
tree0beec13e319c552ff7dae42a4e8e682fc1de1fe0
parent25df6673f1c51e755dd4d08cf64666cdff5e0f18 (diff)
downloadBrowser2-005e202cec29b94fbaf2767acf13d46ee102578d.tar.gz
Add intent-filter with MIME types
BUG:19351071 Change-Id: I6ef53ed1a3ebe52f2d297da0b7997ea18840118f
-rw-r--r--AndroidManifest.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 9394ffa..d313c81 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -56,6 +56,7 @@
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
+ <!-- Catch intents which do not specify a MIME type -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
@@ -63,6 +64,18 @@
<data android:scheme="http" />
<data android:scheme="https" />
</intent-filter>
+ <!-- Catch intents which do specify a MIME type -->
+ <intent-filter>
+ <action android:name="android.intent.action.VIEW" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <category android:name="android.intent.category.BROWSABLE" />
+ <data android:scheme="http" />
+ <data android:scheme="https" />
+ <data android:mimeType="text/html"/>
+ <data android:mimeType="text/plain"/>
+ <data android:mimeType="application/xhtml+xml"/>
+ <data android:mimeType="application/vnd.wap.xhtml+xml"/> <!-- XHTML MP -->
+ </intent-filter>
</activity>
<activity
android:name=".WebViewLayoutTestActivity"