Create your account

Already have an account? Login here

Note: By joining, you will receive periodic emails from Coursetro. You can unsubscribe from these emails.

Create account

96. Introduction to Handler

Design + Code an Android App from Scratch

Woah, wait a second..

Scrounge up some loose change to become a pro member, or login to your account to view this lesson.

Alright, join now. Or login to your account if you're already a pro member.

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.

Course Cirriculum