What is Handler class?

EAGLE picture EAGLE · May 16, 2013 · Viewed 52.2k times · Source

What is a Handler class in Android?

Answer

Gabe Sechan picture Gabe Sechan · May 16, 2013

A handler is basically a message queue. You post a message to it, and it will eventually process it by calling its run method and passing the message to it. Since these run calls will always occur in the order of messages received on the same thread, it allows you to serialize events.