Anurag Singh wrote: > But, there must be some standard way to do this. > > Trek suggest, Start an activity with it's intent set to a standard email > URI - Android will find the best match of the apps that can handle that > type of intent. > > What is the standard email URI? how it could be standard if it's not > part of SDK.
I believe TreKing was slightly mistaken in his choice of terms. Here is a slightly corrected example from the one found on AndroidSnippets.org: Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.setType("text/plain"); emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{"t...@email.com"}); 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. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en