Maarten Maarten - 1 year ago 217
Android Question

Invalidate cache in Picasso

I load an image from disk using Picasso, e.g.,

Picasso.with(ctx).load(new File("/path/to/image")).into(imageView)
, but whenever I save a new image in that file, and refresh my
, Picasso still has the bitmap cached.

Is it possible to invalidate the cache in Picasso?

mes mes
Answer Source

In the recent versions of Picasso, there is a new method for invalidate, without any workarounds, so I think that custom PicassoTools class mentioned earlier, is now obsolete in this case

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download