예제 #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);
     }
 }