title: Matching a URL to an Intent not working
body: <p>I'm writing an Android app that accompanies a website and I wanted to make the app intercept certain URLs. I found multiple examples through Google and on SO but none of them work. I create my Intent:</p>
  
  <pre><code>Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://xgn.nl/article/" + String.valueOf(id)));
  </code></pre>
  
  <p>and then launch it from another Activity (where i is the intent from above)</p>
  
  <pre><code>startActivity(i);
  </code></pre>
  
  <p>The intent filter for the activity that should receive this is:</p>
  
  <pre><code>&lt;activity android:name=".ArticleActivity" android:theme="@style/XGN.Red"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.VIEW" /&gt;
              &lt;data android:scheme="http" android:host="xgn.nl" android:pathPrefix="/article/" android:mimeType="text/*" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>I also tried it without the mimeType in the filter. The intent resolver sees the filter but complains that the data does not match with the data in the intent and launches the browser instead.</p>
  
  <p>What am I doing wrong?</p>