Android Developer Question:
Download Questions PDF

Explain me difference between AsyncTasks & Threads?

Android Developer Interview Question
Android Developer Interview Question

Answer:

☛ Thread should be used to separate long running operations from main thread so that performance is improved. But it can’t be cancelled elegantly and it can’t handle configuration changes of Android. You can’t update UI from Thread.
☛ AsyncTask can be used to handle work items shorter than 5ms in duration. With AsyncTask, you can update UI unlike java Thread. But many long running tasks will choke the performance.

Download Android Developer Interview Questions And Answers PDF

Previous QuestionNext Question
What are content providers?Please explain what is a Job Scheduling?