title: How to retrieve multiple images from server in android?
body: <p>I am a fresher in android developing.I want to retrieve multiple images from server and set Id for all images,Then dynamically give id and show the responsible images.This is my task.I have done to retrieved single images from server. I have insert coding below.
       I tried to retrieve multiple images from server.But i was confused can't get clear idea.so anybody can help me please give some idea. 
   Advanced thank you.</p>
  
  <pre><code>public class MainActivity extends Activity {
  
  
      ImageView   img;
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          img     =   (ImageView) findViewById(R.id.imageView1);
          new Image_Async().execute();
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.main, menu);
          return true;
      }
  
      class Image_Async extends AsyncTask&lt;Bitmap,Bitmap,Bitmap&gt;
      {
  
          @Override
          protected Bitmap doInBackground(Bitmap... arg0) {
              // TODO Auto-generated method stub
              Bitmap  bmp=    null;
              try {
                  URL url =   new URL("http://blog.gettyimages.com/wp-content/uploads/2013/01/Siberian-Tiger-Running-Through-Snow-Tom-Brakefield-Getty-Images-200353826-001.jpg");
                  try {
  
                      bmp =   BitmapFactory.decodeStream(url.openConnection().getInputStream());
                  } catch (IOException e) {
                      // TODO Auto-generated catch block
                      e.printStackTrace();
                  }
  
              } catch (MalformedURLException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
              }
              return bmp;
          }
  
          @Override
          protected void onPostExecute(Bitmap result) {
              // TODO Auto-generated method stub
              img.setImageBitmap(result);
              super.onPostExecute(result);
          }
  
      }
  </code></pre>