// data transport between 2 activity
public class RootClassActivity extends Activity {
public void goToNextPagePress(View view){
Intent intent = new Intent();
intent.setClass(RootClassActivity.this, NodeClassActivity.class);
startActivityForResult(intent, 0);
}
@Override
protected void onActivityResult (int requestCode, int resultCode, Intent data) {
// requestCode = 0
// resultCode = 1
}
}
public class NodeClassActivity extends Activity {
public void backBtnPress(View view) {
// return data to persent activity
this.setResult(1, this.getIntent());
this.finish();
}
}