Thumbnail generation in ListView and download from server

This should be a WeakReference<ImageView> instead. The code in onPostExecute() should call its get() method to obtain the ImageView and check that it is not null before set the Bitmap.

In other case will be pretty easy to make the app crash by rotating the device while a thumbnail is being downloaded.