title: Android associate application to file type to allow download in browser
body: <p>I am working on a proof of concept for a .tiff image converter. The first thing I need to do is allow my application to download .tif/.tiff files. They can come from anywhere- http, gmail, local file, etc... And I have no control whether or not the web server will properly identify the file as an image/tiff MIME type. </p>
  
  <p>I cannot download a .tiff file. I believe the way to do this is by enabling my  within my main activity. </p>
  
  <p>Here is what I have so far:</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:mimeType="*/*" /&gt;
              &lt;data android:scheme="http" /&gt;
              &lt;data android:host="*" /&gt;
              &lt;data android:pathPattern=".*\\.tif" /&gt;
  &lt;/intent-filter&gt;
  </code></pre>
  
  <p>I've looked everywhere and tried numerous suggestions, but can't get it right :(
  I am not new to Android dev but I've never encountered a situation where you need to allow a certain file type to be downloaded.</p>
  
  <p>Thank you</p>