Design + Code an Android App from Scratch
This video talks about what is Handler in Android. To run periodic tasks quickly within the app while the user is interacting with the app, we can either use Runnable objects or we can use the Handler class in Android. A Handler lets you send and process Message objects which are put in a queue by the Android system. The Message includes any action or data that you want to process. A component called the Looper goes through the message queue, picks one message and forwards it to the Handler so that it can process it. Every thread has its own looper and a dedicated handler along with a message queue.