Android Threads and Handlers equals to AsyncTask
Android Threads, Handlers AsyncTask This tutorial describes the usage of Threads, Handlers and AsyncTask in your application. It also covers how to handle the application lifecycle together with threads. It also describes Traceview to trace an application for performance problems. It is based on Eclipse 3.7, Java 1.6 and Android 4.0 (Ice Cream Sandwitch) Table of Contents 1. Android Threads and Background Processing 2. Android Basics 3. Background Processing 3.1. Threads 3.2. Handler 3.3. AsyncTask 3.4. Feedback via ProgressBar 3.5. Concurrency and lifecyle 4. Tutorial: Handler 5. Tutorial: AsyncTask 6. Tutorial: Activity lifecycle and Thread 7. StrictMode 1. Android Threads and Background Processing Android modifies the user interface and handles input events from one single user interface thread which is also called the main thread . If the programmer does not use any concurrency constructs, all code of an Android ap...