0

I am loading image using picasso. In this image, i drawing the paint, after i paint and save the image, but cache image not displayed that drawing line but full image display with drawing lines. But i close the app and again open the app, it cache image display with draw line.

Please suggested me. i am using this picasso. https://github.com/square/picasso

  • Check here to see if the answer helps you -- http://stackoverflow.com/questions/22016382/invalidate-cache-in-picasso – Tasos Jan 22 '16 at 01:45
  • @ Tasos invalidate is not working, the image still remains in disk cache – Rajasekaran T Jan 22 '16 at 01:54
  • theres another solution -- http://stackoverflow.com/questions/25453106/clear-disk-sd-card-cache-of-androids-picasso-image-library – Tasos Jan 22 '16 at 02:02
  • @ Tasos, thanks but i cannot download image from server, i load from sdcard. I debug the code, but cache folder is not available there. What can i do any other solution. – Rajasekaran T Jan 22 '16 at 02:23
  • not sure, but their is some documentation here to have a look -- http://square.github.io/picasso/2.x/picasso/ – Tasos Jan 22 '16 at 08:40

1 Answers1

0

Call Picasso.invalidate(...) when you save the image, passing the same path that you used to load the image.

Copying Jake's comment from https://github.com/square/picasso/issues/1273

Eric Cochran
  • 8,414
  • 5
  • 50
  • 91