Intent emailIntent = new Intent(Intent.ACTION_SEND);
emailIntent.setType("image/jpeg");
emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Image Attachment");
emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(resize_file));
startActivity(Intent.createChooser(emailIntent, "Send email..."));
private void compress(Bitmap bitmap) {
Bitmap out = Bitmap.createScaledBitmap(bitmap, 1024, 800, false);
try {
resize_file = createTemporaryFile("resize", ".jpg");
} catch (Exception e1) {
e1.printStackTrace();
}
FileOutputStream fOut;
try {
fOut = new FileOutputStream(resize_file);
out.compress(Bitmap.CompressFormat.JPEG, 50, fOut);
fOut.flush();
fOut.close();
bitmap.recycle();
out.recycle();
} catch (Exception e) {
}
}
Gmail 추적 :
첨부 파일과 함께 Gmail 앱이 열리지 만 보내기 버튼을 클릭하면 'Gmail 앱이 응답하지 않습니다'라는 오류 메시지가 나타납니다. 미리 감사드립니다.
적절한 문제가 무엇인지 모르겠습니다. 하지만 Gmail 앱 데이터를 지우면 문제가 해결되었습니다. 아무튼 A Honey Bustard의 답변에 감사드립니다 ..
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다