protected override void OnStart() { base.OnStart(); if (serviceConnection == null) { serviceConnection = new TimestampServiceConnection(this); } DoBindService(); }
protected override void OnStart() { base.OnStart(); if (serviceConnection == null) { serviceConnection = new TimestampServiceConnection(this); } Intent serviceToStart = new Intent(this, typeof(TimestampService)); BindService(serviceToStart, serviceConnection, Bind.AutoCreate); restartServiceButton.Enabled = false; }
protected override void OnStart() { base.OnStart(); if (serviceConnection == null) { serviceConnection = new TimestampServiceConnection(this); } Intent serviceToStart = new Intent(this, typeof(TimestampService)); BindService(serviceToStart, serviceConnection, Bind.AutoCreate); restartServiceButton.Enabled = false; }