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(); }
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; }