Getting a HandlerThread. (Android Performance Patterns Season 5, Ep. 5)

50 067
30.3
Опубликовано 22 марта 2016, 17:00
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: goo.gl/4ZJkY1

Join the G+ Community here : goo.gl/6ccETk

#PERFMATTERS

Subscribe to the Android Developers channel at goo.gl/GEh1ds
автотехномузыкадетское