java - Picasso fails to load an image but provides no error message? -


i'm running issue on devices (non-nexus devices) on varying versions of android (kitkat , marshmellow) throwing error when try use picasso load image image view. have no idea i'm doing wrong, provides no error message other calling "onerror" method.

things i've checked:

  • the image string non-null , points valid string on device.
  • picasso non-null.
  • switching on logging see if relevant shows there (it doesn't).

the code:

picasso.setloggingenabled(true); picasso.load(msourceimageurl)     .resize(mwidthpx, mheightpx)     .centercrop()     .error(r.drawable.shape_rounded_rectangle_gray)     .placeholder(r.drawable.shape_rounded_rectangle_gray)     .into(imageview, new callback() {         @override         public void onsuccess() {             system.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& onsuccess");         }          @override         public void onerror() {              system.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& onerror");         } }); 

this issue solved switching picasso glide. worked on of test devices. know original question relatively generic, if you're encountering same thing (picasso won't load image , won't print error) see if using different library help. glide similar.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -