Archive for the ‘Threads’ Category

Background Tasks – Part 4

Friday, March 2nd, 2012

In the previous article we had a look at AsyncTask as saw how it simplified the process of performing background tasks, but saw some potential pitfalls to the newbie, and also saw how it leaves the potential to leak a Context. In Honeycomb Loader was introduced and in this article we’ll have a look at what this offers us.
(more…)

Background Tasks – Part 2

Friday, February 17th, 2012

In the previous article in this series we looked at the UI thread and explored the reason why it is important that we keep any slow, intensive, or blocking tasks off the UI thread. In this article we’ll begin exploring the tools available to help us to achieve that.
(more…)

Background Tasks – Part 1

Friday, February 10th, 2012

Regular readers of Styling Android will understand that it is dedicated to improving the look & feel (UI) and User Experience (UX) of Android apps. One particular area in which we can really frustrate our users is when the app does not respond to their touches / clicks, and it is vital that we keep our app as responsive as possible. I use the term responsive in the context of responding to the user’s actions and not as it is often used in the phrase “Responsive Web Design” to describe how your presentation adjusts to the display. In this series of articles we’ll have a look at some useful techniques for keeping your apps responsive.
(more…)