This is the suggestion provide by Mark.

Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);

emailIntent.setType("text/plain");
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new
String[]{"[email protected]"});
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Text");

context.startActivity(Intent.createChooser(emailIntent, "Send mail..."));

There is no Uri for sending an email. Instead, you use ACTION_SEND with
text/plain as the MIME type and a suitable set of extras.

By using Intent.createChooser() to create your actual Intent, you will
let the user choose from available email clients how to send the message.

- Anurag Singh


On Fri, Apr 30, 2010 at 1:31 AM, ling chiao <[email protected]> wrote:

> Hi:
> I got exception trying to read email
>
>       Uri uri = Uri.parse("content://com.android.provider/EmailProvider/");
>       Intent intent = new Intent(Intent.ACTION_VIEW, uri);
>       startActivity(intent);
>
> "No Activity found to handle Intent { act=android.intent.action.VIEW
> dat=content://com.android.provider/EmailProvider/ }"
> Is this doable from my app? What is the right URI?
>
> Thanks so much.
> ling
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to