A页面传值到B页面
A页面:
Intent intent = new Intent(this,typeof(Activity2));
Bundle bundle = new Bundle();
bundle.PutString("name", "jarvan");
intent.PutExtras(bundle);
this.StartActivity(intent);
B页面
string name = Intent.GetStringExtra("name") ;
A页面传值到B页面
A页面:
Intent intent = new Intent(this,typeof(Activity2));
Bundle bundle = new Bundle();
bundle.PutString("name", "jarvan");
intent.PutExtras(bundle);
this.StartActivity(intent);
B页面
string name = Intent.GetStringExtra("name") ;