예제 #1
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     running = false;
     SetContentView(Resource.Layout.KataCallout);
     // Create your application here
     eng = MKKAEngine.getEngine();
     FindViews();
     SetUpEvents();
 }
예제 #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.QuestionLayout);
            // Create your application here
            eng = MKKAEngine.getEngine();
            FindViews();
            SetUpEvents();
            Trivia t = GetTrivia();

            LoadTrivia(t);
        }
예제 #3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            Xamarin.Forms.Forms.Init(this, savedInstanceState);
            string newPath = MKKAEngine.GetDatabasePath();

            using (var assets = Assets.Open("Karate.db"))
                using (var dest = File.Create(newPath))
                    assets.CopyTo(dest);
            MKKAEngine.getEngine();
            //Xamarin.Forms.DependencyService.Register<AndroidFileHelper>();*/
            base.OnCreate(savedInstanceState);
            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);
            FindViews();
            SetUpEvents();
        }