title: Allow Application to Open a Custom Zip File From Gmail
body: <p><strong>My Problem</strong></p>
  
  <p>I have a custom zip file with the extension <code>.trap</code> which I email to myself and receive in my Gmail account on my android phone.</p>
  
  <p>I need to be able to say that my application can open this file and handle it accordingly. I have looked all over and there are many variations out there but none seem to have worked for me. I did also see that Android doesn't allow the opening of <code>.zip</code> files.</p>
  
  <p>Here are my intent filters I add to my android manifest.</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=".*\\.trap" /&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/trap" /&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=".*\\.trap" /&gt;
          &lt;/intent-filter&gt;
  </code></pre>
  
  <p><strong>NB:</strong> For the MIME type I have also tried <code>*/*</code> which doesn't work and just <code>/</code> which stops the app from launching.</p>
  
  <p><strong>My Questions</strong></p>
  
  <ol>
  <li>Can android open zip files from an email?</li>
  <li>How to specify that my application is able to handle the opening of this file type.</li>
  </ol>
  
  <p><strong>Thanks in advance</strong></p>