Regrettably, no.

This code comes from my app's about box, and there is no button to "send mms to developer", as I don't publish my phone number :)

Since you're asking about both email and mms.... if I may make a suggestion....

Don't bother implementing separate buttons in the UI to "share via MMS", "share via email", "share via Bluetooth".

Just use ACTION_SEND and let Android ask the user how they want to share the data. This way, you'll have all possible sharing options covered in just a few lines of code.

-- Kostya

17.09.2010 20:46, sdphil пишет:
thanks!  this works perfectly!!!!

can you use a uri for sending an MMS as well?

http://groups.google.com/group/android-developers/browse_thread/thread/5fab45e641ca40c1

On Sep 17, 9:27 am, Kostya Vasilyev<[email protected]>  wrote:
   Phil,

This is how I do it. Now that the subject has to be specified in the
URI, since some email applications (HTC Sense version 1.x) have bugs and
don't pick up the subject when specified as an extra.

final Intent view = new Intent(Intent.ACTION_VIEW);
final StringBuilder uri = new StringBuilder("mailto:";);
uri.append(getString( ... recepient address ... ));
uri.append("?subject=").append(Uri.encode( ... subject ...));
uri.append("&body=").append(Uri.encode(getString( ... body text ... )));
view.setData(Uri.parse(uri.toString()));
startActivity(view);
-- Kostya

17.09.2010 20:02, sdphil пишет:



hi,
I want to send an e-mail, and so I use the typical intent --
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);
emailIntent.putExtra(Intent.EXTRA_TEXT, text);
emailIntent.setType("text/plain");
startActivity(Intent.createChooser(emailIntent, "Pick EMail");
When I do this, the chooser comes up and gives all kinds of choices,
for anything that can handle text/plain i assume, because there's
stuff in there that doesn't support "e-mail".  How can I make it so
that it will only show applications that support email (gmail, mail,
yahoo mail, etc...) and not stuff like "Bluetooth", "Facebook", etc...
tia.
--
Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com


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