code: public void pause() {
          switch (status) {
              case PAUSED:
              case STOPPED:
                  return;
  
              case PLAYING:
                  status = Status.PAUSED;
  
                  // Remove all callbacks
                  slideHandler.removeCallbacksAndMessages(null);
          }
      }
docs: Pause the slide show