I'm guessing whatever activity you have this xml layout for doesn't
set an adapter for that listview? That would be a null pointer
exception I believe (yes, kind of a bad exception for that).

On Apr 13, 2:14 pm, SQLserver <[EMAIL PROTECTED]> wrote:
> Hello- Here's an exception I keep getting:
> Thread [<3> Main] (Suspended (exception NullPointerException))
>         ListView.onMeasure(int, int) line: 951
>         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]
>
> I don't have ANY ListViews, Activities, or List ANYTHINGS except this
> one in the UI(The word 'list' is NOWHERE else in my code)
>
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>     android:orientation="vertical"
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent"
>     >
>
> <TextView
>     android:id="@+id/Text"
>     android:layout_width="wrap_content"
>     android:layout_height="wrap_content"
>     android:text="Hello"
>     >
> </TextView>
>
> <ListView
>     android:id="@+id/MainList"
>     android:layout_width="fill_parent"
>     android:layout_height="wrap_content"
>     >
>     </ListView>
> </LinearLayout>
>
> I've eliminated the references to Lists EVERYWHERE else in the code
> besides in this XML.
>
> What could be wrong??
> thanks,
> SQLserver
--~--~---------~--~----~------------~-------~--~----~
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]
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