title: How to return images from asynctask on Android
body: <p>I am writing an application where I am building a list view in which each item has an image. The content of the list view is generated by an XML file that is stored locally, the pictures are fetched from Amazon AWS S3. </p>
  
  <p>I want to write a class <code>AWSImageFetcher</code> that will be responsible for the authentication first (by using another dedicated class) and then for fetching the images. </p>
  
  <p>I understood that it is best practice on Android to subclass <code>AsyncTask</code> in cases like this to perform the network requests. I am now wondering how I <em>should</em> return the images from the <code>AWSImageFetcher</code> class to the list view. </p>
  
  <p>I am coming from iOS where I would just write a delegate for the <code>AWSImageFetcher</code> which would be invoked after the images have been fetched, but this doesn't feel right on Android. Should I use a listener class instead? How would you solve a situation like this on Android in an elegant way?</p>