"call to OpenGL ES API with no current context" while using imageloader in android -
i getting message:
call opengl es api no current context (logged once per thread)
and app runs fine nothing appears in view pager .i have used imageloader download images , display them in it.
i think have used imageloader incorrectly
my pageradapter class:
public class pageradapter extends pageradapter { context mcontext; layoutinflater mlayoutinflater; list<string> l = mainactivity.list; imageloader mimageloader; public pageradapter(context context) { mcontext = context; } @override public int getcount() { return 4; } @override public object instantiateitem(viewgroup container, int position) { // view itemview = mlayoutinflater.inflate(r.layout.img, container, false); imageloader mimageloader = imageloader.getinstance(); mlayoutinflater=((layoutinflater) container.getcontext().getsystemservice(context.layout_inflater_service)); view view = mlayoutinflater.inflate(r.layout.img, container, false); final imageview imageview = (imageview) view.findviewbyid(r.id.imageview3); mimageloader.displayimage(l.get(position),imageview); container.addview(view); return view; } @override public void destroyitem(viewgroup container, int position, object object) { container.removeview((linearlayout) object); } @override public boolean isviewfromobject(view view, object object) { return view == object; } }
i had same warning message , searched lot on internet found no solution. somewhere read setting viewpager's fragment's imageview layout_width , layout_height match_parent , works. don't know how. used fragmentpageradapter , downloading , displaying images on internet.
Comments
Post a Comment