BoundServiceDemo.MainActivity.OnStart C# (CSharp) Method

OnStart() protected method

protected OnStart ( ) : void
return void
		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;
		}