public override void FinishedLaunching(UIApplication app) { Instance = this; Application application = new Application (); kernel = new Kernel (application); kernel.Run (); }
/// <summary> /// The main method which loads Application. /// </summary> protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Kernel.Activity = this; kernel = new Kernel(this); SetContentView(kernel.Window); Instance = this; Preferences.SkinXMLFileStream = Assets.Open("Content/Skin/Skin.xml"); Preferences.ApplicationActivity = this; Application application = new Application(); kernel.Application = application; kernel.Run(); }