Question: what is the difference between handler and asynctask in android?
Answer: The Handler class can be used to register to a thread and provides a simple channel to send data to this thread. The AsyncTask class encapsulates the creation of a background process and the synchronization with the main thread. It also supports reporting progress of the running tasks.