protected override void OnPause() { base.OnPause(); MusicManager.Pause(); // Balanced power accuracy wi-fi and cell information to determine location and very rarely gps if (locationHandler != null) { locationHandler.LocationPriority = preferences.GpsEnabled ? LocationRequest.PriorityBalancedPowerAccuracy : LocationRequest.PriorityHighAccuracy; // If background updating is disabled, stop listening for location updates if (!preferences.BackgroundUpdates) { locationHandler.Stop(); } } }