How to update a bitmap in the imageview
<pre><code>protected Bitmap doInBackground(String...params) {
        // TODO Auto-generated method stub
         try {

              /* Open a new URL and get the InputStream to load data from it. */

              URL aURL = new URL(params[0]);
              URLConnection conn = aURL.openConnection();
              conn.connect();
              InputStream is = conn.getInputStream();

              /* Buffered is always good for a performance plus. */
              BufferedInputStream bis = new BufferedInputStream(is);

              /* Decode url-data to a bitmap. */
              Bitmap bm = BitmapFactory.decodeStream(bis);
              b1=bm;

              bis.close();
              is.close();

          } catch (IOException e) 
          {

              Log.e("DEBUGTAG", "Remote Image Exception", e);

          }

       return null;
   }

// TODO Auto-generated method stub
        super.onPostExecute(result);

        i1.setImageBitmap(b1);
        Animation rotation = AnimationUtils.loadAnimation(MainActivity.this, R.anim.rotate);
     i1.startAnimation(rotation);
    //System.out.println("imageview is working");
        try {
            System.out.println("thread going to sleep");
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        i1.setImageBitmap(b1);
        }
</code></pre>

<p>i am showing an image from the internet in an imageview through a bitmap now i am having another image this bitmap in by updating the url but i am not able to show the this image only previous image is showing,and if i run this in a loop only the last image is shwoing?any suggestions </p>
