示例#1
0
        public void onServiceConnected(ComponentName className, IBinder service) {
          mBound = true;

          Log.d("TRACE", "bind de KineZikService reussi dans PlayerActivity");
          kinezikService = ((LocalBinder) service).getService();
          kinezikService.add(PlayerActivity.this);
        }
示例#2
0
 public void onPushNext() {
   songs.remove(0);
   LocalSong song = kinezikService.getNextSong();
   if (song != null) {
     songs.add(song);
   }
   SongAdapter adapter = new SongAdapter(PlayerActivity.this, songs);
   songList.setAdapter(adapter);
 }