title: Seekbar not working
body: <p>I found some code for a seekbar to work with a mediaplayer online:</p>
  
  <pre><code> @Override
   public void onProgressChanged(SeekBar seekBar, int progress, boolean fromTouch) {
  
   }
  
   @Override
   public void onStartTrackingTouch(SeekBar seekBar) {
       // remove message Handler from updating progress bar
       mHandler.removeCallbacks(mUpdateTimeTask);
   }
   @Override
   public void onStopTrackingTouch(SeekBar seekBar) {
       mHandler.removeCallbacks(mUpdateTimeTask);
       int totalDuration = mp.getDuration();
       int currentPosition = utils.progressToTimer(seekBar.getProgress(), totalDuration);
  
       // forward or backward to certain seconds
       mp.seekTo(currentPosition);
  
       // update timer progress again
       updateProgressBar();
   }
  </code></pre>
  
  <p>I get an error because of the Override's, telling me that they must override or implement a supertype method. When I remove them, my code compiles and runs but the seekbar has no affiliation with the music playing, as in I can move it around but the music keeps playing.</p>
  
  <p>Thanks.</p>
  
  <pre><code>@Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          mp = new MediaPlayer();
          seekBar = (SeekBar) findViewById(R.id.seekBar1);
          seekBar.setOnSeekBarChangeListener(this); //this line causes an error
          try {
              mp.setDataSource(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC).getPath() + "/SpaceJam.mp3");
          } catch (IllegalArgumentException e) {
              e.printStackTrace();
          } catch (SecurityException e) {
              e.printStackTrace();
          } catch (IllegalStateException e) {
              e.printStackTrace();
          } catch (IOException e) {
              e.printStackTrace();
          }
          try {
              mp.prepare();
          } catch (IllegalStateException e) {
              e.printStackTrace();
          } catch (IOException e) {
              e.printStackTrace();
          }
  
      }
  
      @Override
      protected void onStart(){
          super.onStart();
  
          btnPlay = (ImageButton) findViewById(R.id.play_pause);
          btnStop = (ImageButton) findViewById(R.id.stop);
          songTitleLabel = (TextView) findViewById(R.id.songname);
          songTitleArtist = (TextView) findViewById(R.id.artist);
          songCurrentDurationLabel = (TextView) findViewById(R.id.current);
          songTotalDurationLabel = (TextView) findViewById(R.id.total);
          albumArt = (ImageView) findViewById(R.id.albumArt);
          res = getResources().getDrawable(R.drawable.album_art);
          utils = new Utilities();
          . . .
  }
  </code></pre>