3
A
回答
6
凡IMAGE_PATH數組列表使用了店面形象路徑地址對SD卡
image_path.add(Environment.getExternalStorageDirectory() + "/defaultg1.jpg");
image_path.add(Environment.getExternalStorageDirectory() + "/defaultg2.jpg");
if(image_path.size() > 0 && edt_weight1.getText().length() > 0 && edt_weight2.getText().length() > 0){
ArrayList<Uri> uris = new ArrayList<Uri>();
for(int i=0;i<image_path.size();i++){
File fileIn = new File(image_path.get(i));
Uri u = Uri.fromFile(fileIn);
uris.add(u);
}
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND_MULTIPLE);
emailIntent.setType("image/jpg");
emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Enjoy the photo");
emailIntent.putExtra(Intent.EXTRA_TEXT, "Plz find the attachment.");
emailIntent.putExtra(Intent.EXTRA_STREAM, uris);
startActivity(Intent.createChooser(emailIntent, "Email:"));
享受代碼...
相關問題
- 1. 如何將SD卡上的圖像附加到電子郵件中?
- 2. 將圖像附加到電子郵件?
- 3. 將圖像附加到電子郵件
- 4. 嘗試附加一個文件從SD卡到電子郵件
- 5. 如何將多張圖片附加到電子郵件中?
- 6. 如何將電子郵件正文nt中的SD卡圖像添加爲附件?
- 7. 如何使用nodemail將URL圖像附加到電子郵件?
- 8. 如何將電子郵件附加到其他電子郵件?
- 9. 將多個文件附加到CakePHP中的電子郵件
- 10. 將可繪製圖像附加到電子郵件中android
- 11. 製作卡片圖像並將其附加到電子郵件中android
- 12. 將多個文件附加到電子郵件中
- 13. 如何將圖像和音頻文件附加到Android中的電子郵件?
- 14. Android:如何將臨時生成的圖像附加到電子郵件中?
- 15. 將附件添加到電子郵件
- 16. 將文件附加到電子郵件
- 17. 將附件添加到電子郵件
- 18. PHP將圖像附加到電子郵件
- 19. Codename one:將圖像附加到電子郵件失敗
- 20. 將圖像附加到黑莓通過代碼電子郵件
- 21. Android - 將圖像附加到電子郵件
- 22. 將多個附件添加到電子郵件
- 23. Powershell - Outlook - 將多個附件添加到電子郵件
- 24. 如何在黑莓中使用電子郵件附加多個圖像?
- 25. 如何將ConnectStream中的PDF附加到電子郵件中
- 26. 發送HTML電子郵件 - 如何將.html文件附加到電子郵件?
- 27. 未收到附加在電子郵件中的圖像
- 28. 附加圖片到電子郵件
- 29. ABCpdf將Doc附加到電子郵件
- 30. 將PDF附加到電子郵件
哪裏是* 「這個代碼」 *?它的問題到底是什麼? – 2011-10-07 10:22:29
看看:http://stackoverflow.com/questions/5074619/send-e-mail-in-html-format –