Posted on Leave a comment

Android – Timer, update UI

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

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

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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.