如何添加SD卡图像插入电子邮件正文中的Android应用程序 [英] how to add SD card image into email body in android application
本文介绍了如何添加SD卡图像插入电子邮件正文中的Android应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想添加图像插入电子邮件body.i邮件不要使用附件。
i want to add image into email body.i don't use attachment in mail.
String imagepath ;
Imagepath = Environment.getExternalStorageDirectory()+ File.separator + "ImagesCmas/"+image_name;
final Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.setType("image/jpg");
sendIntent.putExtra(Intent.EXTRA_SUBJECT,"Happy Christmas");
sendIntent.putExtra(Intent.EXTRA_TEXT,"Find Greeting Attachment");
sendIntent.putExtra(Intent.EXTRA_TEXT, Uri.parse(imagepath));
startActivity(Intent.createChooser(sendIntent, "Send Mail"));
怎么送SD卡图像插入电子邮件正文中没有附件。
how to send SD card image into email body without attachment.
推荐答案
下面有一些链接 - 如果你有使用这些问题,发表您的code和我会尽力帮助进一步
Here are some links - if you have a problem using these, post your code and I'll try to help further.
Android的写入到SD卡上的文件夹
Android write to sd card folder
HTTP://androidgps.blogspot。 COM / 2008/09 /写入到SD卡功能于android.html
https://开头的网站。 google.com/site/androidhowto/how-to-1/save-file-to-sd-card
这篇关于如何添加SD卡图像插入电子邮件正文中的Android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文