Saturday, April 18, 2020

Pass data between activities

var intent = new Intent(this, typeof(SecondActivity));
intent.PutExtra("myname", "sagar");
StartActivity(intent); 

Accessing data form another activity
 
string myname = Intent.GetStringExtra("myname");
Log.Debug(GetType().FullName, "My name is: " + myname);

No comments:

Post a Comment

Free Online Photoshop

https://www.freeonlinephotoshop.com/