이 질문을하는 데 바보 같지만 여러 EditText보기에서 UI 정보를 가져와 전자 메일 본문에 배치하는 방법을 찾을 수 없습니다. 참고 나는 의도를 가지고있다, 나는 단지 메시지 본문을 채우고 싶다.전자 메일 메시지 본문에 데이터를 추가하십시오.
Intent buildingfireemail = new Intent(android.content.Intent.ACTION_SEND);
buildingfireemail.setType("plain/text");///.setType("message/rfc822")
buildingfireemail.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{"[email protected]"});
buildingfireemail.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject");
buildingfireemail.putExtra(android.content.Intent.EXTRA_TEXT, "Text"
//////////////I need to add data from 80+ views into here.
);try {
startActivity(Intent.createChooser(buildingfireemail, "Send mail..."));
} catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(BuildingFireActivity.this, "There are no email clients installed.", Toast.LENGTH_SHORT).show();
}
나는 이것에 초심자이고 나는 참고로 간다. – KyleM
코드가 맞습니다. 이 코드로 무엇을 얻고 있습니까 ?? –