AndroidChangeSplash.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;
            Preferences.SkinXMLFileStream = Assets.Open("Content/Skin/Skin.xml");
            Preferences.ApplicationActivity = this;

            Syderis.CellSDK.Android.Launcher.Kernel.Instance.SplashStream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("ChangeSplash.DarkC.png");
            Application application = new Application();
            kernel.Application = application;
            kernel.Run();
        }