0
<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <data android:mimeType="*/*" />
    <data android:pathPattern=".*\\.xyz" />
</intent-filter>

When I click on somefile.xyz it opens an Intent chooser which contains app's in which I have declaired above intent-filter(.xyz custom file type).But this works when file is in sdcard and I click on it. How can i make this work for a file as an attachment because the problem is android is not allowing me to download unknown file types from email.

Pankaj
  • 1,242
  • 1
  • 9
  • 21
  • Have you checked different email clients? I have a feeling it may vary by client, and it would be difficult to find a solution. – Samuel Feb 14 '12 at 20:37
  • I found a way to do this. **Code below will prompt your application in intent chooser to select.**.Now my I have different issue._How can I read attachment in my application. [link]http://stackoverflow.com/questions/9310796/how-to-read-a-file-attached-to-an-email-in-my-application-programatically-in-and ' ' – Pankaj Feb 16 '12 at 11:56

0 Answers0