Picasso Library Not Loading Images in Android 5.0 -
i have listview extending arrayadapter. using view holder patter getview , here part of getview method loads images using picasso. following code expected load images image view inside every list item.
picasso.with(mcontext).load(imageurl).fit().into(holder.myimageview, new callback(){ @override public void onerror() { holder.myimageview.setvisibility(view.invisible);} @override public void onsuccess() {}});
so here problem: works fine os < android 5.0, in case of android 5.0 (lollipop), looks picasso fetching these images when app installed , run first time, when launch app again, images don't load. not @ sure problem is. not loading huge images, can assume images loading of size of small icon/thumbnail (around 120x120). using picasso 2.4.0 application , phone using testing nexus 4.
open issue of edit: https://github.com/square/picasso/issues/633
alternative: struggled find answer long time yesterday night. explored picasso intimately trying several stuff. none did work. right doing is:
if(api>=21) //keeping in mind updates beyond 21 use android-universal-image-loader else use picasso
for more information on andorid universal image loader.
please visit https://github.com/nostra13/android-universal-image-loader
its awesome cusotmization.
agian, dont me wrong, 100% +ve there solution picasso, sure find someday, post here then, have problems me, think above way go. please suggest if have anuy other better way.
************************ issue fixed **************************
https://github.com/square/picasso/issues/632 https://github.com/square/picasso/pull/860 ************************** issue fixed ****************************
Comments
Post a Comment