You can't.

You can start *an* email client. Which one depends on what the user has installed, and which application he chooses.

The code I use is:

Intent view = new Intent(Intent.ACTION_VIEW);
StringBuilder uri = new StringBuilder("mailto:";);
uri.append(<email address here>);
uri.append("?subject=").append(Uri.encode(<subject here>));
uri.append("&body=").append(Uri.encode(<message body here>));
view.setData(Uri.parse(uri.toString()));
startActivity(view);

There are other ways to specify subject and body, but this one works with certain buggy email clients (H*C Se*se).

-- Kostya

30.11.2010 13:30, pedr0 пишет:
Hi at all,

How can I make a intent to start the default email client?
I would like to set the receiver address of message..

Thanks!



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
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