答案 0 :(得分:2)
Intent i = new Intent(Register.this,RegisterForm.class);
i.putExtra("name", yourdata);//i assume you are adding some string data
startChildActivity("Register", i);
//in RegisterForm.class
Intent i = RegisterForm.this.getIntent();
i.getStringExtra("name", "default Value you want");
答案 1 :(得分:0)
您必须实现一个名为Parecelable
的界面,并在Parcel
内写下您的对象,以便您可以通过Intent
本教程将教你如何做到这一点
http://www.codexperience.co.za/post/passing-an-object-between-activities-using-an-intent