public ServiceTestConnection(ServiceTestBinder binder) { if (binder != null) { this._binder = binder; } }
public void OnServiceConnected(ComponentName name, IBinder service) { ServiceTestBinder serviceBinder = (ServiceTestBinder)service; if (serviceBinder != null) { this._binder = serviceBinder; this._binder.IsBound = true; //serviceBinder.Service.StartLocationUpdates(); if (Connected != null) { Connected.Invoke(); } } }