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