I have used AsyncTasks
with my application, in order to lazy download and update the UI.
For now my AsyncTasks
updates the UI real simply:
As this part of one training on Android Developers suggests, keep a WeakReference
on the UI element that needs to be updated after task is done and check if the reference is null
before using it. This helps not only in checking if the UI is still around, but also does not prevent UI elements from being garbage collected.