i have application shows nearby merchant list. shows name , image. have created app widget same, linked application. wanted use same imageloader class , methods app widget used application. image not getting displayed. still set default 1 , not change on click of button name. please guide.
my url null on debugging , cant figure out why image loader class not getting loaded.
here snippet button listener.
public static string forwardbuttonlistener(string name){ imageview logoview = new imageview(mcontext); images imgs; string url; log.i("storetag","storeval:"+name); string address="some address"; if(i<list.size()){ //i++; if(i==0){ i++; } log.i("inside forwardbuttonlistener","list's size"+list.size()); updateviews.setboolean(r.id.next, "setenabled", true); storeobject = list.get(i).getstore(); //one store @ ith position name = storeobject.getname(); address = string.valueof(storeobject.getaddress().getstreet1()); logoview.setimageresource(r.id.merchant_image); setstorelogo(logoview, storeobject); imgs = storeobject.getimages(); log.i("image url tag","-------"+imgs); url = imgs.getlogo(); imageloader.displayimage(url, logoview); if(null!=url) log.i("image url tag","-------"+url); updateviews.setimageviewuri(r.id.merchant_image,uri.parse(url)); sid = string.valueof(storeobject.getid()); sname = name; i++; updateviews.settextviewtext(r.id.merchant_text, name); updateviews.settextviewtext(r.id.merchant_address, address); updateviews.setboolean(r.id.back, "setenabled", true); pushwidgetupdate(mcontext,updateviews); } else if(i==list.size()){ updateviews.setboolean(r.id.back, "setenabled", true); updateviews.setboolean(r.id.next, "setenabled", false); pushwidgetupdate(mcontext,updateviews); } return name; }
Comments
Post a Comment