Esempio n. 1
0
        protected AppLocation()
        {
            // create a new service connection so we can get a binder to the service
            locationServiceConnection = new LocationServiceConnection(null);

            // this event will fire when the Service connectin in the OnServiceConnected call
            locationServiceConnection.ServiceConnected += (object sender, ServiceConnectedEventArgs e) => {
                Log.Debug(LogTag, "Service Connected");
                // we will use this event to notify MainActivity when to start updating the UI
                this.LocationServiceConnected(this, e);
            };
        }
Esempio n. 2
0
      protected AppLocation ()
		{
			// create a new service connection so we can get a binder to the service
			locationServiceConnection = new LocationServiceConnection (null);

			// this event will fire when the Service connectin in the OnServiceConnected call 
			locationServiceConnection.ServiceConnected += (object sender, ServiceConnectedEventArgs e) => {

				Log.Debug (LogTag, "Service Connected");
				// we will use this event to notify MainActivity when to start updating the UI
				this.LocationServiceConnected (this, e);
			};
		}