protected override void OnCreate(Bundle bundle) { Console.WriteLine("LaunchActivity - OnCreate"); base.OnCreate(bundle); _navigationManager = (AndroidNavigationManager)Bootstrapper.GetContainer().Resolve<MobileNavigationManager>(); RequestWindowFeature(WindowFeatures.NoTitle); SetContentView(Resource.Layout.Launch); _navigationManager.LaunchActivity = this; _navigationManager.Start(); Finish(); }
protected override void OnCreate(Bundle bundle) { Console.WriteLine("FirstRunActivity - OnCreate"); base.OnCreate(bundle); SetContentView(Resource.Layout.FirstRun); _btnClose = FindViewById<Button>(Resource.Id.firstRun_btnClose); _btnClose.Click += (sender, args) => { AppConfigManager.Instance.Root.IsFirstRun = false; AppConfigManager.Instance.Save(); var intent = new Intent(this, typeof(MainActivity)); StartActivity(intent); Finish(); }; // Since the onViewReady action could not be added to an intent, tell the NavMgr the view is ready _navigationManager = (AndroidNavigationManager)Bootstrapper.GetContainer().Resolve<MobileNavigationManager>(); //((AndroidNavigationManager)_navigationManager).SetFirstRunActivityInstance(this); _navigationManager.BindFirstRunView(this); }