Beispiel #1
0
        protected override void OnResume()
        {
            //DependencyService.Register<JSONDataService>();
            MainPage = new MainPage();

            // enable location
            locationService.ActivateLocationManager();
        }
Beispiel #2
0
        public App()
        {
            InitializeComponent();
            DependencyService.Register <JSONDataService>();

            // Initialize and activate location service
            locationService = DependencyService.Get <ILocationService>();
            MainPage        = new MainPage();
            locationService.ActivateLocationManager();
            //MainPage = new NavigationPage(new View.StationListPage());
        }