Android Developer Question:
Download Questions PDF

Do you know what are Handlers?

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?