On Wed, Oct 6, 2010 at 3:29 PM, Priyank Maiya 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");
> startActivity(emailIntent);
>
> B
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 wrote:
> Hi,
> Thanks for your reply.
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
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.
http://developer.android.com/reference/android/content/Intent.htm
4 matches
Mail list logo