Android:Email
lastmod 2018-08-17created 2016-11-071 edits
Describes how to send E-Mail on Android.
Sending with an Intent
Intent i = new Intent();
i.setAction(Intent.ACTION_SEND);
String mimeType = "application/vnd.ms-excel"; // xls 파일
i.setType(mimeType);
// Uri u = Uri.parse(uri문자열);
Uri u = Uri.fromFile(파일 실제 경로);
i.putExtra(Intent.EXTRA_STREAM, u);
String[] address = {"메일주소@메일주소.com"};
i.putExtra(Intent.EXTRA_EMAIL, address);
startActivity(Intent.createChooser(i, getText(R.string.share)));
See also
Favorite site
- [Recommended] Sending an email with an attachment using an Intent 1
- Sending multiple files with Android E-Mail
- Sending an email with an attachment
References
-
Android_intent_email.pdf ↩