seekbar played time and remaining time showing large integer value.?
<p>In m using android seekbar with play and remaining time for the following sample code for songprgress handler with thread. whenever i clicked next/previous song, it showing large integer value. How to solve this issue?                                                        </p>

<pre><code>class SongProgressUpdateThread extends Thread {
    public void run() {

        if (mp != null) {
            int currentPosition = 0;
            int total = mp.getDuration();
            while (currentPosition &lt; total &amp;&amp; mp.isPlaying() &amp;&amp; stopSongProgressThread==false ) {
                try {
                    Thread.sleep(500);
                    currentPosition = mp.getCurrentPosition();
                } catch (InterruptedException e) {
                    return;
                } catch (Exception e) {
                    return;
                }
                songProgress.setProgress(currentPosition);
                showProgress(currentPosition, total);
            }

        }
    }
}





private void showProgress(int currentPosition, int duration) {
    Bundle bundle = new Bundle();
    bundle.putString("playedTime", getPlayedTime(currentPosition));
    bundle.putString("remainingTime",getRemainigTime(currentPosition, duration));
    Message msg = new Message();
    msg.setData(bundle);
    songProgresshandler.sendMessage(msg);
}

Handler songProgresshandler = new Handler() {
    public void handleMessage(Message message) {
        final Bundle b = message.getData();
        playedTime.setText(b.getString("playedTime"));
        remainingTime.setText("-" + b.getString("remainingTime"));
    }
};
</code></pre>
