title: How to load image from URL in Fragment class?
body: <p>I want to load an image from its URL in Fragment class. I'm loading the image like this:</p>
  <pre><code>try {
   // ImageView j=(ImageView)rootView.findViewById(R.id.image_frm);
    Bitmap bitmap = BitmapFactory.decodeStream((InputStream)new URL(image_url).getContent());
    Bitmap resized = Bitmap.createScaledBitmap(bitmap, 600, 600, true);
    Bitmap conv_bm = getRoundedRectBitmap(resized, 255);
    i.setImageBitmap(conv_bm); 
   // j.setImageBitmap(bitmap);
  } catch (MalformedURLException e) {
    e.printStackTrace();
  } catch (IOException e) {
    e.printStackTrace();
  }
  </code></pre>
  <p>but this method is taking more time to load the image and to open it.
  If I want to use <code>ImageLoader</code> class like <a href="http://www.androidhive.info/2012/07/android-loading-image-from-url-http" rel="nofollow noreferrer">this tutorial</a>, then how to load it in Fragment?</p>