I can have progressbar running when playing a song on Android. But I want to show time of that music on Text view.
Example
00:34/03:56
This time will be increasing while a song is playing.
Thread background=new Thread(new Runnable() {
public void run() {
try{
while (isRunning){
Thread.sleep(100);
i++;
bar.setProgress(i*100);
if (i%10 == 0){
text = i/10+"/60";
time_.setText((CharSequence)text);
}
}
}catch (Exception e){e.printStackTrace();}
}


