1

I made this method and put it inside my onCreate method but the seekBar is still not moving. Help.

public void changeSeekbar() {

    if(mySong.isPlaying()) {
        runnable = new Runnable() {
            @Override
            public void run() {
                mySeekBar.setMax(mySong.getDuration());
                x = mySong.getCurrentPosition();
                mySeekBar.setProgress(x);
                handler.postDelayed(this, 50);
                changeSeekbar();
            }
        };

    }
}
Lawrence
  • 25
  • 2

0 Answers0