android - Resources$NotFoundException: Resource ID #0x0 issue -


this problem annoying me since have no clue might causing it. have few reports of error, samsung devices running android 2.3.5 , 2.3.6 (98%). below stack trace:

android.content.res.resources$notfoundexception: resource id #0x0     @ android.content.res.resources.getvalue(resources.java:892)     @ android.content.res.resources.getdrawable(resources.java:580)     @ android.widget.textview$handleview.setorientation(textview.java:8355)     @ android.widget.textview$handleview.<init>(textview.java:8324)     @ android.widget.textview$insertionpointcursorcontroller.<init>(textview.java:8631)     @ android.widget.textview.getinsertioncontroller(textview.java:9218)     @ android.widget.textview.ontouchevent(textview.java:7137)     @ android.view.view.dispatchtouchevent(view.java:3885)     @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:869)     @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:869)     @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:869)     @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:869)     @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:869)     @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:869)     @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:869)     @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:869)     @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:869)     @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:869)     @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:869)     @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:869)     @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:869)     @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:869)     @ com.android.internal.policy.impl.phonewindow$decorview.superdispatchtouchevent(phonewindow.java:1769)     @ com.android.internal.policy.impl.phonewindow.superdispatchtouchevent(phonewindow.java:1135)     @ android.app.activity.dispatchtouchevent(activity.java:2096)     @ com.android.internal.policy.impl.phonewindow$decorview.dispatchtouchevent(phonewindow.java:1753)     @ android.view.viewroot.deliverpointerevent(viewroot.java:2227)     @ android.view.viewroot.handlemessage(viewroot.java:1886)     @ android.os.handler.dispatchmessage(handler.java:99)     @ android.os.looper.loop(looper.java:130)     @ android.app.activitythread.main(activitythread.java:3687)     @ java.lang.reflect.method.invokenative(native method)     @ java.lang.reflect.method.invoke(method.java:507)     @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:867)     @ com.android.internal.os.zygoteinit.main(zygoteinit.java:625)     @ dalvik.system.nativestart.main(native method) 

does have idea going on or how can add code in order pinpoint cause?

you try set text in textview?? change

textview.settext(intvalue); 

to

textview.settext(intvalue+""); 

there different versions of settext - 1 takes string , 1 takes int resource id. if pass integer try corresponding string resource id - can't find, error.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -