I am using nostra's universal image loader https://github.com/nostra13/Android-Universal-Image-Loader
I am facing a problem with displayImage(). The following scenario occurs :
"I call the imageView.displayImage() and the image is not loaded ( its running in thread) Then I call the imageView.displayImage() second time now since the second image is smaller the second image is shown in imageView but after a few seconds the first image replaces the second image."
How can I avoid the second image being replaced by the previous image? Is there any option to be set for that?
in the onLoadingComplete() callback of the imageLoader.loadImage() we get the imageUri as parameter check it with the current imageUrl if same only then set the image in the imageView. Note the current imageUrl should be a member variable and not a final variable