Skip to content

Instantly share code, notes, and snippets.

@z8888q
Created January 8, 2013 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save z8888q/4480342 to your computer and use it in GitHub Desktop.
Save z8888q/4480342 to your computer and use it in GitHub Desktop.
android send email
Uri uri = Uri.parse("mailto:");
Intent intent = new Intent(Intent.ACTION_SENDTO, uri);
intent.putExtra(Intent.EXTRA_SUBJECT, " 云盘分享文件:" + emailSubject); // 主题
intent.putExtra(Intent.EXTRA_TEXT, emailBody); // 正文
startActivity(Intent.createChooser(intent,
"Select the mail application"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment