//
        // 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.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            RollbarHelper.ConfigureRollbar();
            //START: Let's subscribe to all known unhandled exception events application-wide...
            RollbarHelper.RegisterForGlobalExceptionHandling();
            //END.

            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
        /// <summary>
        /// Initializes the singleton application object.  This is the first line of authored code
        /// executed, and as such is the logical equivalent of main() or WinMain().
        /// </summary>
        public App()
        {
            RollbarHelper.ConfigureRollbar();

            RollbarLocator.RollbarInstance
            .Info("Xamarin.Forms sample: Hello world! Xamarin is here...");

            //START: Let's subscribe to all known unhandled exception events application-wide...
            RollbarHelper.RegisterForGlobalExceptionHandling();
            this.UnhandledException += App_UnhandledException;
            //END.

            this.InitializeComponent();
            this.Suspending += OnSuspending;
        }
        protected override void OnCreate(Bundle bundle)
        {
            RollbarHelper.ConfigureRollbar();

            // First informational log via Rollbar:
            RollbarLocator.RollbarInstance
            .Info("Xamarin.Forms sample: Hello world! Xamarin is here @MainActivity.OnCreate(...) ...");

            //START: Let's subscribe to all known unhandled exception events application-wide...
            RollbarHelper.RegisterForGlobalExceptionHandling();
            AndroidEnvironment.UnhandledExceptionRaiser += AndroidEnvironment_UnhandledExceptionRaiser;
            //END.

            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            LoadApplication(new App());
        }