My problem is similar to this one, How to update a widget every minute, however I only want to update TextView of the UI. I need access to the time so unfortunately can not simply use the DigitalClock view.
Ive been researching and have found ways to update every minute, but not on the minute so they are synchronised with the system clock (so they might be up to 59 seconds out of sync!)
The only ways I can think to do it are
(a) Run a handler (or timer) every second (which seems a bit like overkill if I only want to update every minute) Like this from the android.com resources
(b) Have a service running in background. (I’m not keen on this as I already have more important things running in the background)
(c) use Alarm Manager (again seems like overkill)
Seems to be such an easy thing to do, and yet…
Any advice appreciated
Mel
You can try configuring a Timer to run a TimerTask that updates your TextView every minute (see its schedule method).