So probably one of those parameters is null. Which one is it?




Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.





On Oct 1, 11:53 pm, gonzo <shrikanth.ramasw...@gmail.com> wrote:
> Hi,
>
> I'm just trying to set the content of a List View from a String[]
> array.
>
> and i tried using the ArrayAdapter to set the List Adapter. as...
>
> setListAdapter(new ArrayAdapter<String>(this,R.layout.mycustomlayout,
> R.id.content_text_view, list);
> where list is my String[] array.
>
> mycustomlayout file is as follows....
>
> <LinearLayout
> android:orientation="Vertical"
>           .............
>
> <TextView
> android:id="@+id/listtitle"
> ...................
> />
> <TextView
> android:id="@+id/list_intro"
> .................
> />
> <TextView
> android:id="@+id/content_text_view"
> .......
> />
>
> Do tell me what i'm doing wrong.
>
> I seem to be getting a nullpointerexception in the above mentioned
> line in my code.
>
> Thanks....
>
> Shrikanth
--~--~---------~--~----~------------~-------~--~----~
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to