页面跳转及传值

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