This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am new to Android technology, and after going through various post and blogs i understand the "What is handler/AsyncTask and how it is used" but i could not understand the fact that what we lose if we omit the Handlers and AsyncTasks from Android. So, i want to know "Why handlers are used and what problem handlers solve".
Please spare your valueable time and help me out in this.
You cannot perform long running tasks on the UI thread on Android. Doing so will make the OS want to kill your app quickly. The OS usually waits for ~X seconds before waiting for your UI thread to return. To avoid being zapped by android, you can use a AsyncTask / Service to perform long running operations.
Here is a great video that explains async operations