Code example for ListIterator

Methods: hasNext

0
    Log.d("AutoDroid:PlaylistPlayer.previousTrack", "done");    
  } 
   
  public void nextTrack() { 
    Log.d("AutoDroid:PlaylistPlayer.nextTrack", "begin");    
    if(playlistIterator.hasNext()) {
      boolean wasPlaying = isPlaying();
      stop(); 
      if(wasPlaying) {
        start(); 
      }  
    } 
    Log.d("AutoDroid:PlaylistPlayer.nextTrack", "done");      
  } 
   
  public void togglePlayPause() { 
    Log.d("AutoDroid:PlaylistPlayer.togglePlayPause", "begin");
    if(isPlaying()) { 
      Log.d("AutoDroid:PlaylistPlayer.togglePlayPause", "Pausing");
      player.pause();
    } else {