これは私のクラス名です
public class Register extends TabGroupActivity
私は2番目のアクティビティを呼び出しています
startChildActivity("Register", new Intent(Register.this,RegisterForm.class));
この方法でデータを転送する方法を教えてください
これは私のクラス名です
public class Register extends TabGroupActivity
私は2番目のアクティビティを呼び出しています
startChildActivity("Register", new Intent(Register.this,RegisterForm.class));
この方法でデータを転送する方法を教えてください
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");
と呼ばれるインターフェースを実装し、Parecelable
オブジェクトを 内に記述Parcel
して、 を介して転送できるようにする必要があります。Intent
このチュートリアルでは、その方法を説明します
http://www.codexperience.co.za/post/passing-an-object-between-activities-using-an-intent