[Activity(Label = "@string/app_name", Theme = "@style/AppTheme", MainLauncher = true)] [IntentFilter(new[] { "eu.logfox.intent.example.ACTION" }, Categories = new[] { Intent.CategoryDefault })] public class MainActivity : AppCompatActivity { private Button btnScan; public static MainActivity Instance { get; private set; } ScanReceiver mScanReceiver; protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); // Set our view from the "main" layout resource SetContentView(Resource.Layout.activity_main); btnScan = FindViewById