/// <summary> /// Called when [create]. /// </summary> /// <param name="savedInstanceState">State of the saved instance.</param> protected override void OnCreate(Bundle savedInstanceState) { FormsAppCompatActivity.TabLayoutResource = Resource.Layout.Tabbar; FormsAppCompatActivity.ToolbarResource = Resource.Layout.Toolbar; this.Device = new AndroidDevice(); this.AnalysisLogger = new AppCenterAnalysisLogger(); base.OnCreate(savedInstanceState); AppDomain.CurrentDomain.UnhandledException += this.CurrentDomainOnUnhandledException; TaskScheduler.UnobservedTaskException += this.TaskSchedulerOnUnobservedTaskException; Platform.Init(this, savedInstanceState); Forms.Init(this, savedInstanceState); this.LoadApplication(new App(this.Device, this.AnalysisLogger)); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // /// <summary> /// Finisheds the launching. /// </summary> /// <param name="app">The application.</param> /// <param name="options">The options.</param> /// <returns></returns> public override Boolean FinishedLaunching(UIApplication app, NSDictionary options) { AppDomain.CurrentDomain.UnhandledException += this.CurrentDomainOnUnhandledException; TaskScheduler.UnobservedTaskException += this.TaskSchedulerOnUnobservedTaskException; this.Device = new iOSDevice(); this.AnalysisLogger = new AppCenterAnalysisLogger(); Forms.Init(); Calabash.Start(); SfBorderRenderer.Init(); SfButtonRenderer.Init(); SfTabViewRenderer.Init(); this.LoadApplication(new App(this.Device, this.AnalysisLogger)); return(base.FinishedLaunching(app, options)); }