I try to send email and take text for it from several EditText
s. But when I click the button, I see only the last one EditText
in a body of email.
Whats' wrong with it?
private View.OnClickListener myListener = new View.OnClickListener() {
public void onClick(View v) {
Intent emailIntent = new Intent(Intent.ACTION_SEND_MULTIPLE);
emailIntent.setType("message/rfc822"); //specifies message for email app.
emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[] {"my_email@gmail.com"} );
emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Заявка на замер");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Имя клиента: " + getOrderName());
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Номер телефона : " + getOrderPhone());
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Адрес : " + getOrderAdress());
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Дата : " + getOrderDate() );
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Удобное время : " + getOrderTime() );
startActivity(Intent.createChooser(emailIntent, "Выберите почтовый сервис"));
}
};
As result in email body i see only last one:
Удобное время