How to open the email application from my app. I want to launch directly the compose email screen with the email id that the user should email to. I want to do something similar to what happens on a pc. If you click on an email address, system will automatically opens the email client with the compose screen. The compose screen will ofcourse contain the email id.
+1
A:
Is there a mailto:// handler within Android? That is how it works on the PC, if there is a text mailto://[email protected], it will trigger the loading of an email client that is set to default as per the user's choice. Good luck in your quest. :)
Take care, Tom.
tommieb75
2009-11-19 00:04:12
A:
From poking around in the Contacts application's source code, it looks like you can fire off an Intent that looks something like this:
new Intent(Intent.ACTION_SENDTO,
Uri.fromParts(Constants.SCHEME_MAILTO, "[email protected]", null)
)
Daniel Yankowsky
2009-11-19 00:31:44