java - Android Stackoverflow Error on Listview only on selected device -
while developing native app android gone through crash on purticular htc desire s happening purticularly on listview pages .
what crash on :
- listview view overflow
- span overflow issue
- views overflow issue
- other (please explain )
logcat:
java.lang.stackoverflowerror @ android.text.spannablestringbuilder.checkrange(spannablestringbuilder.java:940) @ android.text.spannablestringbuilder.drawtext(spannablestringbuilder.java:1042) @ android.graphics.canvas.drawtext(canvas.java:1323) @ android.text.styled.drawuniformrun(styled.java:141) @ android.text.styled.drawdirectionalrun(styled.java:298) @ android.text.styled.drawtext(styled.java:357) @ android.text.layout.drawtext(layout.java:1797) @ android.text.layout.draw(layout.java:679) @ android.widget.textview.ondraw(textview.java:4338) @ android.view.view.draw(view.java:7014) @ android.view.viewgroup.drawchild(viewgroup.java:1732) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1459) @ android.view.view.draw(view.java:7017) @ android.view.viewgroup.drawchild(viewgroup.java:1732) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1459) @ android.view.view.draw(view.java:7017) @ android.view.view.builddrawingcache(view.java:6739) @ android.view.view.getdrawingcache(view.java:6512) @ android.view.viewgroup.drawchild(viewgroup.java:1657) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1459) @ android.widget.abslistview.dispatchdraw(abslistview.java:1499) @ android.widget.listview.dispatchdraw(listview.java:3194) @ android.view.view.draw(view.java:7017) @ android.widget.abslistview.draw(abslistview.java:2607) @ android.view.viewgroup.drawchild(viewgroup.java:1732) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1459) @ android.view.view.draw(view.java:7017) @ android.view.viewgroup.drawchild(viewgroup.java:1732) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1459) @ android.view.view.draw(view.java:7017) @ android.widget.framelayout.draw(framelayout.java:357) @ android.view.viewgroup.drawchild(viewgroup.java:1732) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1459) @ android.view.viewgroup.drawchild(viewgroup.java:1730) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1459) @ android.view.view.draw(view.java:7017) @ android.widget.framelayout.draw(framelayout.java:357) @ android.view.viewgroup.drawchild(viewgroup.java:1732) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1459) @ android.view.viewgroup.drawchild(viewgroup.java:1730) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1459) @ android.view.view.draw(view.java:7017) @ android.view.viewgroup.drawchild(viewgroup.java:1732) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1459) @ android.view.viewgroup.drawchild(viewgroup.java:1730) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1459) @ android.view.view.draw(view.java:7017) @ android.widget.framelayout.draw(framelayout.java:357) @ android.view.viewgroup.drawchild(viewgroup.java:1732) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1459) @ android.view.viewgroup.drawchild(viewgroup.java:1730) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1459) @ android.view.viewgroup.drawchild(viewgroup.java:1730) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1459) @ android.view.viewgroup.drawchild(viewgroup.java:1730) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1459) @ android.view.view.draw(view.java:7017) @ android.view.viewgroup.drawchild(viewgroup.java:1732) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1459) @ android.view.view.draw(view.java:7017) @ android.widget.framelayout.draw(framelayout.java:357) @ android.view.viewgroup.drawchild(viewgroup.java:1732) @ android.view.viewgroup.dispatchdraw(viewgroup.java:1459) @ android.view.view.draw(view.java:7017) @ android.widget.framelayout.draw(framelayout.java:357) @ com.android.internal.policy.impl.phonewindow$decorview.draw(phonewindow.java:2054) @ android.view.viewroot.draw(viewroot.java:1632) @ android.view.viewroot.performtraversals(viewroot.java:1335) @ android.view.viewroot.handlemessage(viewroot.java:1991) @ android.os.handler.dispatchmessage(handler.java:99) @ android.os.looper.loop(looper.java:150) @ android.app.activitythread.main(activitythread.java:4385) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:507) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:849) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:607) @ dalvik.system.nativestart.main(native method)
it great track error because tried lot of solution didn't work .
as commonsware said seems have many nested views.
try using more relativelayouts allow making complex views less nesting. try refactor whole screen, not list items.
if want more on how so, post code.
http://developer.android.com/guide/topics/ui/layout/relative.html
Comments
Post a Comment