title: Intent filter for email attachments
body: <p>I want to open audio attachments in emails with my app. Currently my intent filter is like so:</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:mimeType="audio/wav" /&gt;
          &lt;data android:scheme="http" android:host="*" android:pathPattern=".*\\.wav"/&gt;
          &lt;data android:scheme="https" android:host="*" android:pathPattern=".*\\.wav"/&gt;
          &lt;data android:scheme="content" android:host="*" android:pathPattern=".*\\.wav"/&gt;
          &lt;data android:scheme="file" android:host="*" android:pathPattern=".*\\.wav"/&gt;
  &lt;/intent-filter&gt;
  </code></pre>
  
  <p>This works for everything I want it to except for email attachments. Currently if I'm sent a wav file, the only thing I can do is preview it, and that opens with Winamp (so clearly 3rd party apps have a way in). I can't find what I should be adding to do this though, does anyone have any idea?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Here's what LogCat has to say on the matter. When I click Preview I get</p>
  
  <pre><code>01-10 19:28:52.691: INFO/ActivityManager(109): Starting: Intent { dat=content://gmail-ls/messages/xxxxxxx%40gmail.com/439/attachments/0.1/BEST/false cmp=com.google.android.gm/.ViewAttachmentActivity } from pid 19483
  </code></pre>
  
  <p>What's bizarre is that Winamp automatically opens, and is not set as default. I'm given no choice...</p>