title: Best way to handle multiple getView calls from inside an Adapter
body: <p>I have a <code>ListView</code> with custom <code>ArrayAdapter</code>. Each of the row in this <code>ListView</code> has an icon and some text. These icons are downloaded in background,cached and then using a callback, substituted in their respective <code>ImageViews</code>. The logic to get a thumbnail from cache or download is triggered every time <code>getView</code>() runs.</p>
  
  <p>Now, according to Romain Guy:</p>
  
  <blockquote>
    <p>"there is absolutely no guarantee on
    the order in which getView() will be
    called nor how many times."</p>
  </blockquote>
  
  <p>I have seen this happen, for a row of size two getView() was being called six times!</p>
  
  <p>How do I change my code to avoid duplicate thumbnail-fetch-requests and also handle view recycling? </p>
  
  <p>Thanks.</p>