Q:

how to pass data between a activity to dialogfragment

I used this code to transfer data from Activite to the dialogfragment and did not work for me
How to send from Activite to dialogfragment. Once again, I reverse the process
//activity
  Bundle data = new Bundle();//create bundle instance
            data.PutString("key_value", "String to pass");//put string to pass with a key value
            dialogFragment.setArguments(data);//Set bundle data to fragment
//dialog
 var mArgs = Arguments;
            var myDay = mArgs.GetString("key_value");
            textb.Text = myDay; 

A:

1-in fragment you access to actvity )so you can call any function from activity
 //in activty defien

  public string GetData(){

     return "datat";
   } 

 //in fragment call
 ((YourActivty)this.Activity).GetData();

2-another way use sharedprefrencess
//save in sharedPrefrences
ISharedPreferences prefs = PreferenceManager.GetDefaultSharedPreferences (context);
ISharedPreferencesEditor editor = prefs.Edit ();
editor.PutString ("data", "my data");
// editor.Commit();    
editor.Apply(); 

//get datat
ISharedPreferences prefs = PreferenceManager.GetDefaultSharedPreferences (context);
String = prefs.GetString ("data","def value");

