title: SeekBar.IOnSeekBarChangeListener, seekBar can't run
body: <p>A callback that notifies clients when the progress level has been changed. This includes changes that were initiated by the user through a touch gesture or arrow key/trackball as well as changes that were initiated programmatically.</p>
  
  <p>Inside <code>OnCreate</code></p>
  
  <pre><code>public class AudioPlayer : Activity,SeekBar.IOnSeekBarChangeListener
  seekBar.SetOnSeekBarChangeListener (this);
          seekBar.ProgressChanged+= (object sender, SeekBar.ProgressChangedEventArgs e) =&gt; {
              int progress=(int)(utils.getProgressPercentage(player.CurrentPosition,player.Duration));
              seekBar.Progress = progress;
  
          };
  
  public void OnStartTrackingTouch(SeekBar seekBar) {}
  
  public void OnStopTrackingTouch(SeekBar seekBar) {}
  
  
  public int getProgressPercentage(int currentDuration, int totalDuration)
  {
      int percentage;
  
      int currentSeconds = (int)(currentDuration / 1000);
      int totalSeconds = (int)(totalDuration / 1000);
  
      //calculating percentage
  
      percentage = (((int)currentSeconds) / totalSeconds) * 100;
  
      return percentage;
  }
  </code></pre>
  
  <p>While tracks are playing, seekBar still stops.</p>