开发者

How to send an attachment with the Email in android?

Can any body share any co开发者_JS百科de snippet in order to send an attachment with an email using android

native client.

Thanks & Regards,


This is what I found,

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜