You could use an: android.os.CountDownTimer I found it works pretty much like the Timer class in Swing, if you've dabbled with that.
Cheers Steve On Aug 17, 6:29 am, Rexxars <[email protected]> wrote: > Hi, > > I'm trying to create a remote control for a media player > (communicating with a TCP socket over Wifi). > When it retrieves information about the current song being played, it > gets the current position and total duration of the song. > Obviously, what I want is a MM:SS display of the current position. > What is the best way to achieve this? > I could use a thread which sleeps, but that's not very accurate. What > is the "proper" way of making it update every second? > > Thanks in advance! > > - Rexxars --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

