Exemplo n.º 1
0
 // All the method that are called on start
 public void seekUpdation() {
   if (MusicService.isPlaying == true) {
     seek_bar.setProgress(musicSrv.getPosn());
     song_progress_text.setText(convertPositionString(musicSrv.getPosn()));
     current_song_text.setText(MusicService.CurrentSong.get(0).getStringDuration());
   }
   seekHandler.postDelayed(run, 1000);
   displayVibzMessages();
 }
 @Override
 public int getCurrentPosition() {
   if (musicService != null && musicBound && musicService.isPng()) {
     return musicService.getPosn();
   } else {
     return 0;
   }
 }
 @Override
 public int getCurrentPosition() {
   if (musicSrv != null && musicBound && musicSrv.isPng()) return musicSrv.getPosn();
   else return 0;
 }