如何发送附件的电子邮件中的android? [英] How to send an attachment with the Email in android?
本文介绍了如何发送附件的电子邮件中的android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何机构可以共享,以便与使用电子邮件发送附件的任何code段的android
Can any body share any code snippet in order to send an attachment with an email using android
本机客户端。
感谢和放大器;问候,
推荐答案
这是我发现了什么,
Intent i = new Intent(Intent.ACTION_SEND);
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
i.putExtra(Intent.EXTRA_EMAIL, new String[]{""});
i.setType("audio/amr");
i.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + attachmentFilePath));
startActivity(i);
这篇关于如何发送附件的电子邮件中的android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文