protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); _hidden.InitializeWeb(); _RunTempCommands(); // TODO: REMOVE if (!this.CheckVersion()) { return; } // make sure that all the necessary files exist if (!File.Exists(Master.GetBaseDir() + "_clans.dat")) { File.Create(Master.GetBaseDir() + "_clans.dat").Dispose(); } if (!File.Exists(Master.GetBaseDir() + "_settings.dat")) { File.WriteAllText(Master.GetBaseDir() + "_settings.dat", "notifications=on"); } if (!File.Exists(Master.GetBaseDir() + "_key.dat")) { //Intent pIntent = new Intent(this, (new KeyActivity().Class)); Intent pIntent = new Intent(this, typeof(RegisterOrLogInActivity)); StartActivity(pIntent); } else { Master.FillKeyEmail(); } // TODO: save temp currently active clan so persistent between app open times, and load it here if (File.Exists(Master.GetBaseDir() + "_active.dat")) { string[] aLines = File.ReadAllLines(Master.GetBaseDir() + "_active.dat"); Master.SetActiveClan(aLines[0]); Master.SetActiveUserName(aLines[1]); } // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); base.CreateDrawer(); if (Master.GetActiveClan() != "") { this.Title = Master.GetActiveClan() + " - " + Master.GetActiveUserName(); this.BuildHomeDashboard(); } //StartService(new Intent(this, typeof(NotificationsService))); }