[android-developers] opening Android Email application from another application

2010-10-06 Thread Priyank
Hi, I have my application which creates an audio file. I need to forward this file via Android Email app. But on calling the email intent, I get a permission denial. I am calling the email app like this: Uri emailUri = Uri.parse(content://com.android.email.provider/ account);

Re: [android-developers] opening Android Email application from another application

2010-10-06 Thread Kumar Bibek
You can open the Activity(Compose) of the mail app. But the content provider for the gmail app is not public. So, you cannot query that content provider. If you want to send an audio file as an attachement, checkout the SEND action.

Re: [android-developers] opening Android Email application from another application

2010-10-06 Thread Priyank Maiya
Hi, Thanks for your reply. What you said worked. Instead of querying the email provider, I directly called the intent: emailIntent.setClassName(com.android.email, com.android.email.activity.Welcome); startActivity(emailIntent); But my doubt is that, I dont know whether the user has configured

Re: [android-developers] opening Android Email application from another application

2010-10-06 Thread Kumar Bibek
You should not be using class names like that. It is advised to use the Intent Mechanism only. If the user hasn't configured the mail account, it's the responsibility of the mail app to open the proper activity. On Thu, Oct 7, 2010 at 12:59 AM, Priyank Maiya priyankvma...@gmail.comwrote: Hi,

Re: [android-developers] opening Android Email application from another application

2010-10-06 Thread Mark Murphy
On Wed, Oct 6, 2010 at 3:29 PM, Priyank Maiya priyankvma...@gmail.com wrote: Thanks for your reply. What you said worked. Instead of querying the email provider, I directly called the intent: emailIntent.setClassName(com.android.email, com.android.email.activity.Welcome);