View.post() not called?
<p>I am making an Image loader for loading images into lists - so in order it to be smooth, everything needs to run in the background thread except setting the image to the view.
The problem is that the Runnable in the code bellow is sometimes not executed.
I am calling the setImage method from background threads.</p>

<pre><code>protected void setImage(final ImageView img, final Bitmap bm, String hash) {
    img.setTag(TAG_RESPONSE, hash);
    Log.v(TAG, "setting image bitmap1");
    //TODO: here is the bug - sometimes the runnable below is not called
    img.post(new Runnable() {

        @Override
        public void run() {
            Log.v(TAG, "setting image bitmap2");
            img.setImageBitmap(bm);
            img.invalidate();
        }
    });

}
</code></pre>

<p>Anyone has any ideas what am I doing wrong?</p>
