我必须通过意图将来自两个不同活动的数据发送到同一个活动。从活动1,意图将数据传递给EnquireActivity,从活动2,意图也被传递给EnquireActivity。如何在 EnquireActivity 中接收这些意图。任何帮助,将不胜感激。
活动一:
Intent i1 = new Intent(this, EnquireActivity.class);
i1.putExtra("name",et_name.getText().toString());
i1.putExtra("adults",et_adult.getText().toString());
i1.putExtra("child",et_child.getText().toString());
i1.putExtra("email",et_email.getText().toString());
i1.putExtra("phone",et_phone.getText().toString());
i1.putExtra("datedept",date1);
i1.putExtra("datearr",date2);
i1.putStringArrayListExtra("list1", getChecked);
startActivity(i1);
活动二:
Intent intent = new Intent(this, EnquireActivity.class);
intent.putExtra("name", name);
intent.putExtra("night", n);
intent.putExtra("day", d);
intent.putExtra("dest", dest);
startActivity(intent);