I need to create a Timer to update the UI at regular intervals. But the Swing Timer class is not available on Android. How can I work around this problem ?
(I would avoid creating threads and then use the Timer class from java.util package)
I need to create a Timer to update the UI at regular intervals. But
Share
You could use a
Handlerand thepostAtTime()method or thepostDelayed()method. This will allow you to schedule aRunnableto be executed at some point in the future.