When I use a smaller refresh interval, the method getCurrentPosition() doesn't work consistently —…
Crístian Deives

Crístian Deives — You aren’t doing anything wrong. However, setting a refresh interval of 16 ms is a really short amount of time. Let’s consider this from a UX perspective. Let’s say a song is about 4 minutes, that’s 240,000 ms. So the SeekBar has to move from “o” to “100” in 240,000 ms. Updating the SeekBar every 16 ms doesn’t make much sense (you would be updating the SeekBar position 15k times in 4 minutes). Making the SeekBar update every second or so, or even longer is a better approach from a UX perspective.