title: Android app open gpx files
body: <p>I have build an app to edit gpx files on Android. Now I want to register my app to handle gpx files.</p>
  
  <p>Therefor I have build some intent-filters. These filters are working sometimes, but not often. I can open gpx files, that I have received via Inbox, but no files from Gmail. Files from Dropbox are sometimes working.</p>
  
  <p>Can anyone help me, to improve my intent filters, so that they are working every time my user trys to open a gpx file?</p>
  
  <pre><code>         &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.VIEW" /&gt;
  
              &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
  
              &lt;data android:scheme="http" /&gt;
              &lt;data android:host="*" /&gt;
              &lt;data android:pathPattern=".*\\.gpx" /&gt;
          &lt;/intent-filter&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.VIEW" /&gt;
  
              &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
  
              &lt;data android:scheme="http" /&gt;
              &lt;data android:host="*" /&gt;
              &lt;data android:mimeType="application/gpx+xml" /&gt;
          &lt;/intent-filter&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.VIEW" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
  
              &lt;data android:scheme="file" /&gt;
              &lt;data android:host="*" /&gt;
              &lt;data android:pathPattern=".*\\.gpx" /&gt;
          &lt;/intent-filter&gt;
  </code></pre>
  
  <p>EDIT:</p>
  
  <pre><code>        &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.VIEW" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
  
              &lt;data android:scheme="content" /&gt;
              &lt;data android:host="*" /&gt;
              &lt;data android:mimeType="application/gpx+xml" /&gt;
          &lt;/intent-filter&gt;
  </code></pre>