Well, I am not using that any non-UI Thread, I am using AsyncTask that should not cause any problem. I do not know where this error is comming... working fine on emulator with 2.0.1 but this is primarily occuring on Droid. On Sun, Dec 27, 2009 at 1:43 PM, Frank Weiss <[email protected]> wrote:
> I've run into similar stack traces. Prime cause in my case was my code was > manipulating the UI from a non-UI thread. > > On Dec 27, 2009 9:29 AM, "Abdul Mateen" <[email protected]> wrote: > > Hi, > I have been running into strange problems. here is the stacktrace it seems > , there is nowhere the error is in my application, I donot know why this > exception/error is comming.. > > java.lang.NullPointerException at > android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:355) at > android.widget.ArrayAdapter.getView(ArrayAdapter.java:323) at > android.widget.AbsListView.obtainView(AbsListView.java:1274) at > android.widget.ListView.makeAndAddView(ListView.java:1668) at > android.widget.ListView.fillDown(ListView.java:637) at > android.widget.ListView.fillFromTop(ListView.java:694) at > android.widget.ListView.layoutChildren(ListView.java:1521) at > android.widget.AbsListView.onLayout(AbsListView.java:1113) at > android.view.View.layout(View.java:6831) at > android.widget.FrameLayout.onLayout(FrameLayout.java:333) at > android.view.View.layout(View.java:6831) at > android.widget.FrameLayout.onLayout(FrameLayout.java:333) at > android.view.View.layout(View.java:6831) at > android.view.ViewRoot.performTraversals(ViewRoot.java:996) at > android.view.ViewRoot.handleMessage(ViewRoot.java:1633) at > android.os.Handler.dispatchMessage(Handler.java:99) at > android.os.Looper.loop(Looper.java:123) at > android.app.ActivityThread.main(ActivityThread.java:4338) at > java.lang.reflect.Method.invokeNative(Native Method) at > java.lang.reflect.Method.invoke(Method.java:521) at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) > at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) at > dalvik.system.NativeStart.main(Native Method) > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

