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") ;
转载于:https://www.cnblogs.com/apes-monkeys/p/4031170.html