Code example for ListIterator

Methods: hasPrevious, previous

0
    Log.d("AutoDroid:PlaylistPlayer.stop", "done");    
  } 
   
  public void previousTrack() { 
    Log.d("AutoDroid:PlaylistPlayer.previousTrack", "begin");
    if(playlistIterator.hasPrevious()) {
      boolean wasPlaying = isPlaying();
      stop(); 
      playlistIterator.previous();
      if(playlistIterator.hasPrevious()) {
        playlistIterator.previous();
      } 
      if(wasPlaying) {
        start(); 
      } 
    } 
    Log.d("AutoDroid:PlaylistPlayer.previousTrack", "done");    
  } 
   
  public void nextTrack() { 
    Log.d("AutoDroid:PlaylistPlayer.nextTrack", "begin");