BorderLayoutSample.Program.OnCreate C# (CSharp) Method

OnCreate() protected method

The main method which loads Application.
protected OnCreate ( Bundle savedInstanceState ) : void
savedInstanceState Bundle
return void
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            Kernel.Activity = this;

            kernel = new Kernel(this);
            SetContentView(kernel.Window);

            Instance = this;
            Syderis.CellSDK.Common.Preferences.SkinXMLFileStream = Assets.Open("Content/Skin/Skin.xml");
            Syderis.CellSDK.Common.Preferences.ApplicationActivity = this;

            Application application = new Application();
            kernel.Application = application;
            kernel.Run();
        }