Skip to content

Instantly share code, notes, and snippets.

@ligi
Created February 22, 2013 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ligi/5017133 to your computer and use it in GitHub Desktop.
Save ligi/5017133 to your computer and use it in GitHub Desktop.
diff to include opml intent-filter for antennapod
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index a0e277a..83cfea2 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -221,8 +221,53 @@
<data android:mimeType="text/xml"/>
</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:host="*"
+ android:pathPattern=".*\\.opml"
+ android:scheme="https"/>
+ </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:host="*"
+ android:pathPattern=".*\\.opml"
+ android:scheme="http"/>
+ </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:pathPattern=".*\\.opml"
+ android:scheme="file"/>
+ </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:mimeType="text/x-opml"/>
+ </intent-filter>
+
</activity>
+
<activity
android:name=".activity.OpmlFeedChooserActivity"
android:label="@string/opml_import_label" >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment