public Compass() { _sensorManager = (SensorManager)DroidFactory.MainActivity.GetSystemService(Context.SensorService); _locationManager = (LocationManager)DroidFactory.MainActivity.GetSystemService(Context.LocationService); _compassListener = new CompassListener(this); _locationListener = new LocationListener(); _locationListener.Add(_compassListener); }
public GeoLocation() { _manager = (LocationManager)DroidFactory.MainActivity.GetSystemService(Context.LocationService); _listener = new LocationListener(); _listener.Add(new LocationReceiver(this)); }