Qing Ryder

Qing Ryder

  • NA
  • 202
  • 16.6k

Button to Open New Activity from fragment

May 3 2018 9:02 AM
I am trying to Open a new Activity from a fragment with the following code
 
  1. Button button = view.FindViewById<Button>(Resource.Id.button1);  
  2.             button.Click += StartNewActivity;  
  3.   
  4.             void StartNewActivity(object sender, EventArgs e)  
  5.             {  
  6.                 Intent intent = new Intent(this.Activity, typeof(fragment4));  
  7.                 StartActivity(intent);  
  8.             } 
 But i get the following errors
 
 
 
 Any Idea is Ultimately Welcomed!

Answers (7)