public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Util.ReportTime ("Entering Finished"); MainAppDelegate = this; window.MakeKeyAndVisible (); //SpyTouch.SpyTouch.Run (); // Required by some HTTP calls to Twitter System.Net.ServicePointManager.Expect100Continue = false; #if true try { if (File.Exists ("/Users/miguel/xauth")){ using (var f = File.OpenText ("/Users/miguel/xauth")){ var cfg = TwitterAccount.OAuthConfig; cfg.ConsumerKey = f.ReadLine (); cfg.ConsumerSecret = f.ReadLine (); cfg.Callback = f.ReadLine (); useXauth = true; } } } catch {} #else var cfg = TwitterAccount.OAuthConfig; useXauth = true; #endif Util.ReportTime ("Before GetDefaultAccount"); var defaultAccount = TwitterAccount.GetDefaultAccount (); Util.ReportTime ("After GetDefaultAccount"); if (defaultAccount == null){ if (useXauth) NewAccountXAuth (null, null); else CreateDefaultAccountWithOAuth (); } else { Util.ReportTime ("Before UI Creation"); CreatePhoneGui (); Util.ReportTime ("After UI Creation"); Account = defaultAccount; } return true; }