diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-02-09 17:04:48 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-02-20 13:37:26 +0000 |
commit | a1538974d2abf2d29a3a70d018ee681bc8a517ba (patch) | |
tree | 6af26e42f31e4164ba4fe139e694ef0177a9510c | |
parent | 892eb30731fead40cc588040aedd27e799da1152 (diff) | |
download | mupdf-a1538974d2abf2d29a3a70d018ee681bc8a517ba.tar.xz |
Android tweaks; attempt to trigger on .xps and .cbz files too.
In theory, the changes here should make mupdf be recognised as
a handler for .xps and .cbz files (and for .pdf files without
the correct mimetype). In practise I can't actually make this
work right on my device. I'll open a stack overflow question
and ask there.
-rw-r--r-- | android/AndroidManifest.xml | 41 |
1 files changed, 38 insertions, 3 deletions
diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index a385849b..c2e74a7b 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -25,13 +25,48 @@ <intent-filter> <action android:name="android.intent.action.VIEW"/> <category android:name="android.intent.category.DEFAULT"/> + <data android:mimeType="application/vnd.ms-xpsdocument"/> + </intent-filter> + <intent-filter> + <action android:name="android.intent.action.VIEW"/> + <category android:name="android.intent.category.DEFAULT"/> <data android:mimeType="application/pdf"/> </intent-filter> + <intent-filter> + <action android:name="android.intent.action.VIEW"/> + <category android:name="android.intent.category.DEFAULT"/> + <data android:mimeType="application/x-cbz"/> + </intent-filter> + <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="file"/> + <data android:mimeType="*/*"/> + <data android:pathPattern=".*\\.xps"/> + <data android:host="*"/> + </intent-filter> + <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="file"/> + <data android:mimeType="*/*"/> + <data android:pathPattern=".*\\.pdf"/> + <data android:host="*"/> + </intent-filter> + <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="file"/> + <data android:mimeType="*/*"/> + <data android:pathPattern=".*\\.cbz"/> + <data android:host="*"/> + </intent-filter> </activity> <activity android:name="OutlineActivity" - android:label="@string/outline_title" - android:theme="@android:style/Theme.NoTitleBar"> + android:label="@string/outline_title"> </activity> - </application> </manifest> |