Jump to content
Android Forum - A Community For Android Users and Enthusiasts

Open email attachment with my app


bialek
 Share

Recommended Posts

Hi everyone,

 

I would like to open email attachments with my app. I added that to my manifest file:

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

 

but when I click the attachment to open it from the email app I got permission denial error while starting intent. I tried also add to the manifest that:

<uses-permission android:name="com.android.email.permission.READ_ATTACHMENT"/>
<uses-permission android:name="com.android.email.permission.ACCESS_PROVIDER"/>

 

but it didn't help either. I tested on the android 2.3.3 and 4.1.2. Is there something I forgot?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...