title: Android ViewPager: downloading the images from URL
body: <p>I'm trying to create a image Gallery using <code>ViewPager</code>. I've found several examples and I've got them all to work. The one thing the examples don't show, is how to populate the ViewPager using downloaded images from an URL. All the tutorials either have the images in the <code>Drawables</code> folder or on the SD card. Does anyone know of an example where a ViewPager gets the images from a URL. I've found examples of Lazy Loading a GridView and a ListView, but I'm not smart enough to be able to convert those into a working ViewPager. I mainly run into issues with the Adapter classes. The Lazy Loading examples seem to use <code>BaseAdapter</code> and I think a ViewPager needs to use <code>PagerAdapter</code> right? So, <strong>are there any examples of a ViewPager that gets the images from a URL?</strong> What I need the ViewPager to do is to download the images from a String Array something like this:</p>
  
  <pre><code>    String[] imageGalleryStr = {
      "http://www.website.com/images/image01.png",
      "http://www.website.com/images/image02.png",
      "http://www.website.com/images/image03.png",
      "http://www.website.com/images/image04.png",
      "http://www.website.com/images/image25.png",
      "http://www.website.com/images/image26.png",
      "http://www.website.com/images/image27.png",
      "http://www.website.com/images/image28.png" };
  </code></pre>
  
  <p>Any ideas?</p>