示例#1
0
 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);
 }
示例#2
0
 public GeoLocation()
 {
     _manager  = (LocationManager)DroidFactory.MainActivity.GetSystemService(Context.LocationService);
     _listener = new LocationListener();
     _listener.Add(new LocationReceiver(this));
 }