code: public void setAdapter(SlideShowAdapter adapter) {
          if (this.adapter != null) {
              this.adapter.unregisterDataSetObserver(adapterObserver);
          }
          this.adapter = adapter;
          this.adapter.registerDataSetObserver(adapterObserver);
  
          if (adapter != null) {
              PlayList pl = getPlaylist();
              pl.onSlideCountChanged(adapter.getCount());
              pl.rewind();
  
              prepareSlide(pl.getFirstSlide());
          }
      }
docs: Set the adapter that will create views for the slides
  
  @param adapter