Created
February 11, 2013 19:54
-
-
Save jschmid/4757078 to your computer and use it in GitHub Desktop.
Android send an email Intent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Intent email = new Intent(Intent.ACTION_SEND); | |
email.setType("message/rfc822"); | |
email.putExtra(Intent.EXTRA_EMAIL, new String[]{"you@gmail.com"}); | |
email.putExtra(Intent.EXTRA_SUBJECT, "subject"); | |
email.putExtra(Intent.EXTRA_TEXT, "message"); | |
startActivity(Intent.createChooser(email, "Choose an Email client :")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment