I've been using lately the following library: UrlImageViewHelper. It uses an AsyncTask to download the image. Your code would be something like this:

private void setImg(final ImageView im, String url){
    UrlImageViewHelper.setUrlDrawable(im, url) ;
}


Very simple now, am I right?

android using async http connection to get image bitmap
I am looking for a queue with multiple values but the default std::queue supports only two values like

queue&lt;int, int&gt; myqueue;


I have eight elements and want the same functionality of queue (PUSH, POP, etc.) like this

queue&lt;int, int, int, int, int, int, int, int&gt; myqueue;

