我試圖使一個應用程序來捕捉圖像,並通過電子郵件發送,我成功地用它下面的代碼通過電子郵件發送圖像,Android?
String path = Images.Media.insertImage(getContentResolver(), bmp,"title", null);
Uri screenshotUri = Uri.parse(path);
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
emailIntent
.putExtra(android.content.Intent.EXTRA_EMAIL, emailAddresses);
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject);
emailIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri);
emailIntent.setType("image/png");
startActivity(Intent.createChooser(emailIntent, "Send email using"));
,但圖像在一個小尺寸發送和非常低的分辨率?!任何建議發送圖像的實際大小和分辨率?!或者有沒有其他方法可以從相機結果中獲取JPEG圖像而不是位圖?
在此先感謝
http://stackoverflow.com/questions/2518055/image-attachment-to-a-mail-how-in-android – waqaslam 2012-04-12 13:10:49