title: Register a new file type in Android
body: <p>I want to write a simple STL (geometrical data file) viewer application on Android, but I'm not able to make recognize a format to the system. I wrote this in my app manifest file:</p>
  
  <pre><code>&lt;intent-filter&gt;
      &lt;action android:name="android.intent.action.VIEW" /&gt;
      &lt;action android:name="android.intent.action.EDIT" /&gt;
      &lt;action android:name="android.intent.action.PICK" /&gt;
      &lt;category android:name="android.intent.category.DEFAULT" /&gt;
      &lt;data android:scheme="http" /&gt;
      &lt;data android:pathPattern=".*\\.stl" /&gt;
      &lt;data android:mimeType="application/sla" /&gt;
      &lt;data android:host="*" /&gt;
  &lt;/intent-filter&gt;
  </code></pre>
  
  <p>But the moment I launch the browser and go to download some sample STL file, the download is interrupted and I'm reported that the data file type is unknown for the system.</p>
  
  <p>I have no real Android device, so I use only an emulator, and for development I use C# on MonoDroid (but I honestly don't think that is the problem).</p>
  
  <p>How could I fix this problem?</p>