Posted on Leave a comment

Android – Timer, update UI

http://qaru.site/questions/342385/how-to-change-a-textview-every-second-in-android

[code language=”java”]
Timer timer = new Timer();
timer.scheduleAtFixedRate(new TimerTask()
{
public void run()
{
//your code
}
}, delay, period);
[/code]

How to Update the UI in an Android Activity Using Data from a Background Service

https://android-developers.googleblog.com/2007/11/stitch-in-time.html

Updating the UI from a Timer _ Android Developers