Code example for Activity

Methods: runOnUiThread

0
                return; 
            mMemoryCache.put(mImageToLoad.source, bmp);
            if (imageViewReused(mImageToLoad)) return;
            final BitmapDisplayer bd = new BitmapDisplayer(bmp, mImageToLoad);
            final Activity a = (Activity) mImageToLoad.imageview.getContext();
            a.runOnUiThread(bd);
        } 
    } 
 
    private static class ImageToLoad { 
 
        public final URL source;
        public final ImageView imageview;
 
        public ImageToLoad(final URL source, final ImageView imageview) {
            this.source = source;
            this.imageview = imageview;
        } 
    } 
 
    private static class MemoryCache {