0

How to clear cache of Picasso library?

Picasso.with(mActivity).load("http://"+AppConstants.IPAddress+"/MenupicsServices/UserPhotos/"+DataSource.GetValue(mActivity, AppConstants.Save_UserDetails, AppConstants.User_Profile_Photo))
     .resize(120, 120)
     .skipMemoryCache()
     .into(Img_User_Profile);
Luciano Rodríguez
  • 2,181
  • 3
  • 17
  • 32

1 Answers1

0

Try this

        Picasso.with(context).cache.clear();

For Further reference see this. Invalidate cache in Picasso

Mark as up, if it works for you. :)

Community
  • 1
  • 1
Nitesh
  • 3,550
  • 1
  • 17
  • 24
  • 1
    But for me after this Picasso.with(context) the cache attribute is not there. Can you please mention any other way to cleat the cache – Parthiban M Dec 17 '14 at 07:31