title: Intent filter for browsing XML (specifically rss) in android
body: <p>I have an activity that I want to run every time the user goes to an xml (specifically rss) page in the browser (at least assuming the user get's it from the list of apps that can support it).</p>
  
  <p>I currently already have the current intent filter:</p>
  
  <pre><code>    &lt;activity android:name=".activities.EpisodesListActivity"
          android:theme="@android:style/Theme.NoTitleBar"&gt;
          &lt;intent-filter&gt;
              &lt;category android:name="android.intent.category.BROWSABLE"&gt;&lt;/category&gt;
              &lt;category android:name="android.intent.category.DEFAULT"&gt;&lt;/category&gt;
              &lt;action android:name="android.intent.action.VIEW"&gt;&lt;/action&gt;
              &lt;data android:scheme="http"&gt;&lt;/data&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>Now as you can guess, this is an evil intent, as it wants to open whenever a page is requested via http.  However, when I ad the line:</p>
  
  <pre><code>&lt;data android:mimeType="application/rss+xml"&gt;&lt;/data&gt;
  </code></pre>
  
  <p>to make it:</p>
  
  <pre><code>    &lt;activity android:name=".activities.EpisodesListActivity"
          android:theme="@android:style/Theme.NoTitleBar"&gt;
          &lt;intent-filter&gt;
              &lt;category android:name="android.intent.category.BROWSABLE"&gt;&lt;/category&gt;
              &lt;category android:name="android.intent.category.DEFAULT"&gt;&lt;/category&gt;
              &lt;action android:name="android.intent.action.VIEW"&gt;&lt;/action&gt;
              &lt;data android:scheme="http"&gt;&lt;/data&gt;
              &lt;data android:mimeType="application/rss+xml"&gt;&lt;/data&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>The application no longer claims to be able to run rss files.</p>
  
  <p>Also, if I change the line to:</p>
  
  <pre><code>&lt;data android:mimeType="application/xml"&gt;&lt;/data&gt;
  </code></pre>
  
  <p></p>
  
  <p>It also won't work (for generic xml file even).</p>
  
  <p>So what intent filter do I need to make in order to claim that the activity supports rss.</p>
  
  <p>(Also, bonus points if you can tell me how I know what URL it was the user opened.  So far, I've always sent that information from one activity to the other using extras).</p>
  
  <p>Thank you for your help</p>