Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
In this blog we are going to covers Android Looper, Handler, and MessageQueue. These are the core component in Android OS which is essential to create an unblocked responsive UI.
Looper:
Looper is a worker that serves a MessageQueue for current thread. Looper loops through message queue and sends messages to corresponding handlers to process.
Handler:
It allows you to send and process Message and Runnable objects associated with a thread’s MessageQueue. Each Handler instance is associated with a single thread and that thread’s message queue
MessageQueue:
Android application maintain a queue of task that need to be update the UI thread is know as MessageQueue.
These are among the building blocks of Android OS. Whenever we create a new thread is one-time use only and die after executing its run method. But in Android UI thread kept alive while the application is running so there is a role of looper which helps to keep alive the UI thread which loop through MessageQueue to execute the task on Android UI thread.
Kindly, go through the below image for better understanding.
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
It was a successful collaboration. The Mobikul team provided the client everything they needed in a timely and high-quality manner. They were very professional, reliable, and accessible during the entire process. The client also saw no room for any improvements in the vendor's performance.
Vincenzo Carrano
Administrator, Segshop
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.