Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("image/jpg");
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]
{"[email protected]"});
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,
"Test Subject");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT,
"go on read the emails");
Log.v(getClass().getSimpleName(), "sPhotoUri=" + Uri.parse("file:///sdcard/2944154479.jpg"));
emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///sdcard/2944154479.jpg"));
startActivity(Intent.createChooser(emailIntent, "Send mail..."));
我用上面的代码的图像发送到电子邮件,电子邮件页面显示该文件附加 但我只得到了消息,附件是没有得到我的邮件。附加的图像是没有得到到邮件
请帮助 在此先感谢
它不工作,我有没有需要添加任何其他 – user1891910 2013-02-11 10:58:28
你得到任何错误? – Hasmukh 2013-02-11 11:00:06
不,在发送电子邮件时显示它已附加,但是当我发送并检查我的邮件时,它没有收到。 – user1891910 2013-02-11 11:04:03