protected override void OnDestroy() { base.OnDestroy(); // Re-configure sync since user may have changed sync preferences DataSyncReceiver.ConfigureSync(this); }
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(); }