Skip to content
Advertisement

Media Player – Seek bar and Time lable is not progressing

IDK why but after just coping the entier mainactivty.java file from this video

IDK why my seek bar and timetable are not showing any progress

there is an exception I have 2 audio files but the video show has only one so I have doubled all the methods also the onClick and a dialog which is different from it

MainActivity.java

JavaScript

Advertisement

Answer

So well why should threads sleep 1000000000 milliseconds. In that case your thread does its tasks every 1000000 seconds.

1000000000 ms => 1000000 sec => 16666 min => 277 hour

So your thread does its task every 277 hours. The param of sleep is millisecond so put st like 1000(1 second) or something like that which is a lot shorter. If this wasn’t solution let me know.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement