0

i want solution for this problem when i used intent in xamarin to make android app i got this error System.NullReferenceException: Object reference not set to an instance of an object

btcall.Click += delegate
{
    var url = Android.Net.Uri.Parse("http://www.google.com");
    var intent = new Intent(action: Intent.ActionView, uri: url);
    StartActivity(intent);
};
 btother.Click += delegate
{
    var intent = new Intent(action: Intent.ActionReboot);
    StartActivity(intent);
};

Screenshot of My problem

Brandon Minnick
  • 13,342
  • 15
  • 65
  • 123
Kamal Samir
  • 71
  • 1
  • 11

0 Answers0