protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); // Prepare sensors Bluetooth.PrepareRegister(); Wifi.PrepareRegister(); /* * Request necessary permissions */ ActivityCompat.RequestPermissions(this, new[] { Manifest.Permission.Bluetooth, Manifest.Permission.BluetoothAdmin, Manifest.Permission.AccessCoarseLocation, Manifest.Permission.AccessFineLocation, Manifest.Permission.ChangeWifiState, Manifest.Permission.AccessWifiState }, 1); // Start Xamarin App Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); LoadApplication(new App()); }