bitmap - Image from server not updated Android -


i need show user profile image load google cloud storage, problem when change picture upload server, , refresh page still see old image. tried ios version of app , instantly refreshed it's not problem server.

to load image use picasso , this:

picasso.with(profileactivity.this).load(imageurl).memorypolicy(memorypolicy.no_cache).into(profilephoto); 

i noticed when uninstall app , install again refresh image guess it's problem caching. can help? thank you.

before loading image try invalidating it:

picasso.with(profileactivity.this).invalidate(imageurl); picasso.with(profileactivity.this).load(imageurl).memorypolicy(memorypolicy.no_cache).into(profilephoto); 

edit: have tried:

picasso       .with(profileactivity.this)     .load(imageurl)     .memorypolicy(memorypolicy.no_cache, memorypolicy.no_store)     .into(profilephoto); 

acutally think issue since not using local image, using network cache it.

if above doesn't work try this:

picasso       .with(profileactivity.this)     .load(imageurl)     .networkpolicy(networkpolicy.no_cache)     .into(profilephoto); 

Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -