title: Adding Intent Filters to Xamarin Forms / Xamarin Android Errors
body: <p>I am building a Home Launcher App with Xamarin Forms, something like the Niagara Launcher.</p>
  <p>To make my app actually behave like a launcher app I want to add the needed intent Filters to my mainactivity.cs in the android project, according to this post:</p>
  <p><a href="https://forums.xamarin.com/discussion/21961/creating-an-android-launcher-home-screen-using-xamarin" rel="nofollow noreferrer">https://forums.xamarin.com/discussion/21961/creating-an-android-launcher-home-screen-using-xamarin</a></p>
  <p>Making it to look like this:</p>
  <pre><code>    namespace Launcher.Droid
  {
      [Activity(Label = &quot;Launcher&quot;, Icon = &quot;@mipmap/icon&quot;, Theme = &quot;@style/MainTheme&quot;, MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize)]
      [IntentFilter(new[] { Intent.ActionMain }, Categories = new[] { Intent.CategoryHome, Intent.CategoryDefault })]
      public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
      {
          protected override void OnCreate(Bundle savedInstanceState)
          {
              base.OnCreate(savedInstanceState);
  
              Xamarin.Essentials.Platform.Init(this, savedInstanceState);
              global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
              LoadApplication(new App());
          }
  
          public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults)
          {
              Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults);
  
              base.OnRequestPermissionsResult(requestCode, permissions, grantResults);
          }
      }
  }
  </code></pre>
  <p>For every Intent Filter I get an errror Telling me</p>
  <ul>
  <li>Static member 'member' cannot be accessed with an instance reference; qualify it with a type name instead</li>
  </ul>
  <p>and</p>
  <ul>
  <li>Static member 'member' cannot be accessed with an instance reference; qualify it with a type name instead.</li>
  </ul>
  <p>I am new to Xamarin and would be very glad about a hint / direction what I am doing wrong. Thank you guys</p>