Пример #1
0
		protected override void OnStart ()
		{
			base.OnStart ();
			if (playIntent == null) {
				playIntent = new Intent(this, typeof(MusicService));
				musicConn = new MusicConnection ();
				BindService(playIntent, musicConn, Bind.AutoCreate);
				StartService(playIntent);
			}
		}
Пример #2
0
 protected override void OnStart()
 {
     base.OnStart();
     if (playIntent == null)
     {
         playIntent = new Intent(this, typeof(MusicService));
         musicConn  = new MusicConnection();
         BindService(playIntent, musicConn, Bind.AutoCreate);
         StartService(playIntent);
     }
 }