【发布时间】:2014-01-13 16:37:29
【问题描述】:
我无法在 2 个活动之间共享数据:
活动1
homeButton.Click += delegate {
var second = new Intent(this, typeof(SecondPage));
second.PutExtra("reg", "qwe");
StartActivity (typeof(SecondPage));
}
活动2(第二页)
string txt = Intent.GetStringExtra ("reg") ?? "null";
Console.WriteLine (txt);
仍然为空,有什么建议吗?
【问题讨论】: