我试图在电子邮件中发送各种条目变量,但我尝试输入多个“额外文本”意图,并且它只发送指定的最后一个额外文本中的文本。如何在电子邮件中获取所有条目文本?继承人的代码:
@Override
public void onClick(View v) {
if (v.getId()==findViewById(R.id.enviar).getId())
{
Intent intentEmail = new Intent(Intent.ACTION_SEND, Uri.fromParts("mailto", "villasantdesign@gmail.com", null));
intentEmail.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{"villasantdesign@gmail.com"});
intentEmail.putExtra(Intent.EXTRA_SUBJECT, "Consulta Técnica");
intentEmail.putExtra(Intent.EXTRA_TEXT, etlugar.getText());
intentEmail.putExtra(Intent.EXTRA_TEXT, etfecha.getText());
intentEmail.putExtra(Intent.EXTRA_TEXT, etcable.getText());
intentEmail.putExtra(Intent.EXTRA_TEXT, etqe.getText());
intentEmail.putExtra(Intent.EXTRA_TEXT, etantena.getText());
intentEmail.putExtra(Intent.EXTRA_TEXT, etampli.getText());
intentEmail.putExtra(Intent.EXTRA_TEXT, etmodulo.getText());
intentEmail.setType("message/rfc822");
startActivity(Intent.createChooser(intentEmail, "Enviar"));
}}}