Esempio n. 1
0
        /// <summary>
        /// Initializes the service.
        /// </summary>
        protected override void Initialize()
        {
            var context = Catel.Android.ContextHelper.CurrentContext;

            _locationManager = context.GetSystemService(Context.LocationService) as LocationManager;

            _locationListener = new LocationListener();
            _locationListener.StatusChanged   += OnStatusChanged;
            _locationListener.LocationChanged += OnLocationChanged;
        }
        /// <summary>
        /// Initializes the service.
        /// </summary>
        protected override void Initialize()
        {
            var context = Catel.Android.ContextHelper.CurrentContext;
            _locationManager = context.GetSystemService(Context.LocationService) as LocationManager;

            _locationListener = new LocationListener();
            _locationListener.StatusChanged += OnStatusChanged;
            _locationListener.LocationChanged += OnLocationChanged;
        }