1

I'm using this code to retrieve an image from my host:

Picasso.with(rootView.getContext()).load("https://domain.tld/directory/imagename.jpg").into(ImageView);

I want to use Picasso because I thought that when I changed the picture on the host (same imagename) the picture will change in my App aswell. But it doesn't. So I think the cache is still valid. How long does is stay valid before it fetches the new image?

1 Answers1

0

you want to clear catch memory and change image every time. so refer this link for clear catch memory.

other wise set place holder in Picasso lib. like Picasso.with(mFragment.getActivity()).load(mCardList.get(i).getProfilePictureFiles().get(0).getUrl()).into(image).placeholder(R.drawable.ic_launcher);

Community
  • 1
  • 1
Hardik Parmar
  • 712
  • 2
  • 13
  • 28