Android Developer Question:

Download Job Interview Questions and Answers PDF

Do you know what are Handlers?

Android Developer Interview Question
Android Developer Interview Question

Answer:

Handlers are objects for managing threads. It receives messages and writes code on how to handle the message. They run outside of the activity’s lifecycle, so they need to be cleaned up properly or else you will have thread leaks.
Handlers allow communicating between the background thread and the main thread.
A Handler class is preferred when we need to perform a background task repeatedly after every x seconds/minutes.

Download Android Developer Interview Questions And Answers PDF

Previous QuestionNext Question
What is the build process in Android?Do you know what is ANR, and why does it happen?