While AsyncTask is the most useful threading class you can use, there’s some situations where it just doesn’t make sense. For example, AsyncTasks aren’t good for long-running work, or for threaded callbacks.
In this video Colt McAnlis shows how HandlerThread can be used to pick up the slack. This dedicated, long-running thread resource is ideal for situations where you have to process big workloads, or if you need a place to get an API result back, in a threaded manner.
Watch more Android Performance Patterns here: http://goo.gl/4ZJkY1
Join the G+ Community here : https://goo.gl/6ccETk
#PERFMATTERS
Subscribe to the Android Developers channel at http://goo.gl/GEh1ds