Наследование: Java.Lang.Object, IServiceConnection, IGetTimestamp
Пример #1
0
 protected override void OnStart()
 {
     base.OnStart();
     if (serviceConnection == null)
     {
         serviceConnection = new TimestampServiceConnection(this);
     }
     DoBindService();
 }
Пример #2
0
		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;
		}
Пример #3
0
        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;
        }