Android – Loading remote images

By -

Problem: How do i load images from web OR Loading of remote images.

This tutorial is going to be a demo for loading images resides at a remote location. For this tutorial, i have implemented AsyncTask to show prorgress bar until the whole image gets loaded fully.


FYI, i have made progress bar visible inside the onPreExecute() method. And performs the image loading operations inside the doInBackground() method. Once this operation is done, we will make progress bar invisible and make imageview visible with that loaded image inside the onPostExecute() method.

Download this example from here:

Paresh Mayani

Paresh Mayani is a lead android developer from India. Currently, He is Sr. Software engineer at InfoStretch Solutions Pvt. Ltd. He has been developing android apps since very 1st version i.e. Android 1.5, he says he has seen days and nights of Android history. He is the Head/Organizer of Google Developers Group (GDG), Ahmedabad

  • mikep

    thanks, this helps a lot. I notice android is using AysncTask, to load data from any type of HTTP request now. Im new to android. I am moving from desktop to mobile development, and I will continue my studies with your up to date information.

    • Paresh Mayani


  • andriangungon

    sir can I request? can you make please a tutorial for audio streaming like internet radio. Thank you in advance sir.