Exemple #1
0
        public void locationManagerDidUpdateLocation(DroidLocationManager manager)
        {
            System.Diagnostics.Debug.WriteLine("Lat: {0}, Long: {1}", manager.location.Latitude, manager.location.Longitude);

            weatherManager     = new WeatherManager(manager.location.Latitude, manager.location.Longitude);
            weatherManager.dlg = this;

            manager.stopLocationServices();
        }
Exemple #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);

            LoadApplication(new App());

            locationManager = new DroidLocationManager(this);
            locationManager.startLocationServices();
            locationManager.dlg = this;
        }