I'm using Picasso in android app loading image from web url, But I see image is not updated when I updated image on web.
Picasso.with(context).load("http://testServer.com/Images/sponsor.png").into(imageView1);
Thanks in advance.
I'm using Picasso in android app loading image from web url, But I see image is not updated when I updated image on web.
Picasso.with(context).load("http://testServer.com/Images/sponsor.png").into(imageView1);
Thanks in advance.
Picasso uses a cache mechanism, so the same image is not re-downloaded twice.
If you need to bypass this cache, you can change memory or network policy to do this.
Picasso has builtin caching so the image cached automaticly. try invalidating. example:
Picasso.with(getActivity()).invalidate(file);
public void loadImage(ImageView imageView, String image_url,Contextcontext)
{
try
{
Picasso.with(context)
.load(image_url)
.memoryPolicy(MemoryPolicy.NO_CACHE)
.networkPolicy(NetworkPolicy.NO_CACHE)
.placeholder(R.drawable.default_image)
.into(imageView);
}
catch(Exception ex)
{
ex.toString();
}
}
try to download aquery library see here https://code.google.com/p/android-query/wiki/ImageLoading