Use a Handler to run code on a given thread after a delay or repeat tasks periodically on a thread.
- constructing a
Handler
and then - "posting" Runnable code to the event message queue on the thread to be processed
handler.post(); handler.postAtFrontOfQueue(); handler.postDelayed(); handler.postAtTime();