Я хочу отправить несколько значений через EXTRATEXT намерение ... Но я не могу это сделать.
Код:
public void onClick(View view) {
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("plain/text");
String mailid="luckshay_sm@yahoo.co.in";
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{mailid});
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Delivery Request");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "My address is "+edittext.getText().toString());
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "My phone number is "+edittext1.getText().toString());
startActivity(Intent.createChooser(emailIntent, "Send mail..."));
}
});
Now the problem is that only phone number appears but the address doesnt appear..ie. its taking the second EXTRA_TEXT and not the first one.:(
Я хочу передать 5-6 значений, используя EXTRA_TEXT .... Возможно ли это?