I am making a demo in android for imageLoading, I have used first UniversalImageLoader then picasso and then an ImageLoader class,But all times when i upload a new image to server and it successful uploaded to server and when i am trying to set it to ImageView ,the previously loaded image is remains same,its not changing,I am so frustrated by this and wasted 2 days to solve this with no luck,Please help me to save my life.
my code is as below:
Picasso.with(getApplicationContext())
.load(Pref.getValue(getApplicationContext(),
Const.PREF_PROFILE_PIC, "")).into(iv_profile);
Picasso.with(getApplicationContext())
.load(Pref.getValue(getApplicationContext(),
Const.PREF_COVER_PIC, "")).into(iv_cover);
Try adding a
cachebreakerat the end of the url:This will append the current timestamp automatically when you are creating the image, and it will make the browser look again for the image instead of retrieving the one in the cache.