How to set seek bar value in Android?
<p><br>
      Im developing one application which used SeekBar to control volume in 
MediaPlayer. The problem is when i move the seek bar at that time only the 
volume is increased, rest of 
the time default volume was set. Here is my code    </p>

<pre><code>seek.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
    public void onProgressChanged(SeekBar seekBar, int progress,
        boolean fromUser) 
    {
        //Log.i("Seek Bar", "" + validBpm);
        mp.setVolume(left, right);
    }
    public void onStartTrackingTouch(SeekBar seekBar)
    {
        left=left+20;
        right=right+20;
        mp.setVolume(left, right);
    }
    public void onStopTrackingTouch(SeekBar seekBar) {
        left=left-20;
        right=right-20;
        mp.setVolume(left, right);
    }
});
</code></pre>
