title: Supply Picasso library function with URLs fetched with AsyncTask
body: <p>I am building an activity that is supposed to show movie posters in a grid. Ideally I would do that using the Picasso library. In order to acheive that, I have a <code>MovieListFragment.java</code> with the following:</p>
  
  <ul>
  <li>an inner class <code>FetchMovieTask</code> extending <code>AsyncTask</code> where <code>doInBackground()</code> basically fetches posters images URLs from an API and puts them in a <code>String[]</code> array;</li>
  <li><code>updateMovieList()</code> that creates an instance of <code>FetchMovieTask</code> and calls <code>execute()</code>;</li>
  <li><p>I create an adapter for the GridView in <code>onCreateView()</code>: </p>
  
  <pre><code>this.mMoviesAdapter = new ArrayAdapter&lt;String&gt;(getActivity(), 
      R.layout.grid_image_layout, R.id.image_view, new ArrayList&lt;String&gt;());`
  </code></pre></li>
  </ul>
  
  <p>My problem is I can't figure out where to put the Picasso code, how to supply the URLs to the Picasso functions and how to add the images to the grid view. Can anyone help sort this out?</p>