public override void OnDestroy() { if (this.connectionReceiver != null) { this.UnregisterReceiver(this.connectionReceiver); this.connectionReceiver = null; } this.serviceConnection.Disconnect(this); base.OnDestroy(); }