Is there a view with id "list" in your layout file?

On 4月4日, 下午12时46分, "Dan U." <[EMAIL PROTECTED]> wrote:
> It'd be helpful to see your code, but I'm guessing you have a
> ListActivity and you haven't set a list adapter.
>
> On Apr 3, 7:42 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > Hello everyone,
> > When I want to start my activity in "Run" mode, all I get is a
> > NullPointerException error. When I run it in debug mode, I can see the
> > stack trace but it doesn't really help me..Can anyone decipher this
> > stack trace?
>
> > DalvikVM[localhost:8606]
> >         Thread [<3> Main] (Suspended (exception NullPointerException))
> >                 ArrayAdapter.createViewFromResource(int, View, ViewGroup, 
> > int) line:
> > 243
> >                 ArrayAdapter.getView(int, View, ViewGroup) line: 221
> >                 ListView.measureHeightOfChildren(int, int, int, int, int) 
> > line:
> > 1009
> >                 ListView.onMeasure(int, int) line: 959
> >                 ListView(View).measure(int, int) line: 5937
> >                 LinearLayout(ViewGroup).measureChildWithMargins(View, int, 
> > int, int,
> > int) line: 2251
> >                 LinearLayout.measureChildBeforeLayout(View, int, int, int, 
> > int, int)
> > line: 742
> >                 LinearLayout.measureVertical(int, int) line: 289
> >                 LinearLayout.onMeasure(int, int) line: 231
> >                 LinearLayout(View).measure(int, int) line: 5937
> >                 FrameLayout(ViewGroup).measureChild(View, int, int) line: 
> > 2219
> >                 FrameLayout.onMeasure(int, int) line: 146
> >                 FrameLayout(View).measure(int, int) line: 5937
> >                 LinearLayout.measureVertical(int, int) line: 385
> >                 LinearLayout.onMeasure(int, int) line: 231
> >                 LinearLayout(View).measure(int, int) line: 5937
> >                 PhoneWindow$DecorView(ViewGroup).measureChild(View, int, 
> > int) line:
> > 2219
> >                 PhoneWindow$DecorView(FrameLayout).onMeasure(int, int) 
> > line: 146
> >                 PhoneWindow$DecorView.onMeasure(int, int) line: 1202
> >                 PhoneWindow$DecorView(View).measure(int, int) line: 5937
> >                 ViewRoot.performTraversals() line: 341
> >                 ViewRoot.handleMessage(Message) line: 584
> >                 ViewRoot(Handler).dispatchMessage(Message) line: 80
> >                 Looper.loop() line: 91
> >                 ActivityThread.main(String[]) line: 3052
> >                 Method.invokeNative(Object, Object[], Class, Class[], 
> > Class, int,
> > boolean) line: not available [native method]
> >                 Method.invoke(Object, Object...) line: 356
> >                 ZygoteInit$MethodAndArgsCaller.run() line: 1547
> >                 ZygoteInit.main(String[]) line: 1445
> >                 NativeStart.main(String[]) line: not available [native 
> > method]
> >         Thread [<13> Binder Thread #2] (Running)
> >         Thread [<11> Binder Thread #1] (Running)
> >         Thread [<15> Thread-7] (Running)
>
> > Thanks,
> > Noam.- 隐藏被引用文字 -
>
> - 显示引用的文字 -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to