Xamarin Pass Data Between Activity

后端 未结 1 529
天命终不由人
天命终不由人 2020-12-22 12:22

I can not share data between 2 activity:

Activity1

homeButton.Click += delegate {
    var second = new Intent(this, typeof(SecondPage));
    second.P         


        
相关标签:
1条回答
  • 2020-12-22 12:41

    For a start, you should pass the intent you created:

    homeButton.Click += delegate {
        var second = new Intent(this, typeof(SecondPage));
        second.PutExtra("reg", "qwe");
        StartActivity (second);
        }
    
    0 讨论(0)
提交回复
热议问题