RunningInfo info; // Running info. /* * OnCreate - Constructor for the activity. */ protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); Forms.Init(this, bundle); LoadApplication(new App()); Xamarin.FormsMaps.Init(this, bundle); myThreadDelegate = new ThreadStart(CheckNotifications); myThread = new Thread(myThreadDelegate); database = new Database_Controller(); info = new RunningInfo(); info.Id = 1; info.background = false; info.notificationNeeded = false; database.SaveRunningInfo(info); myThread.Start(); }