I am experimenting with sending email from within my app by launching an email app with startActivity(Intent.ACTION_SEND) or (Intent.createChooser(i, title) with various extras. I have it working, although not completely to my liking.
ACTION_SEND is fairly generic so the chooser pulls up email apps and also messaging apps. If there's just the one email app, this means one extra step for the user that would be nice to avoid. Is this possible? Another question is with the mime type set with intent.setType(). The doc on setType suggests "text/plain" when EXTRA_TEXT is used. This works ok. However when I had first tried setting the mime type to "message/rfc822", the chooser failed to find any app that could handle it. (I found this from an example posted by Mark Murphy on Dec 12/08.) This makes me wonder just how I can latch onto the email apps more effectively. Is there a list of mime types that are handled by the Google-supplied messaging apps? Maybe some choice will help me to avoid having the chooser pull up unwanted choices. Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

