我不知道如何從不同的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();
}
我是新來的,學習隨我去FYI。 – KyleM
看來你的代碼是正確的。你用這個代碼得到什麼? –