Posted on Leave a comment

Android – Timer, update UI

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

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.