页面跳转及传值

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") ;

posted @ 2014-10-17 14:57  码动未来  阅读(117)  评论(0编辑  收藏  举报