예제 #1
0
        protected override void OnDestroy()
        {
            base.OnDestroy();

            // Re-configure sync since user may have changed sync preferences
            DataSyncReceiver.ConfigureSync(this);
        }
예제 #2
0
        public override void OnCreate()
        {
            base.OnCreate();

            Log.Debug("Synchronous app initialization");

            try {
                App.Initialize(this, ApplicationContext).Wait();
            }
            catch (Exception ex) {
                Log.Error(ex, "Failed to initialize app");
                throw;
            }

            Log.Debug("Completing Android initialization");

            RegisterActivityLifecycleCallbacks(_lifecycleHandler);

            DataSyncReceiver.ConfigureSync(this);

            CalibrationUi = new CalibrationUiManager();
        }