I am making an image downloader to load images into lists, so in order for it to be smooth, everything should be done in the background thread, except setting the image to the view. The problem is that Runnable in the code below sometimes fails. I call the setImage method from background threads.
protected void setImage(final ImageView img, final Bitmap bm, String hash) { img.setTag(TAG_RESPONSE, hash); Log.v(TAG, "setting image bitmap1");
Anyone have any ideas what I'm doing wrong?
android
martinpelant
source share