Sylvester Steele wrote: > But the ListView list11= (ListView)findViewById(R.id.list1); returns a > null pointer, note that I am using the new XML ID format like: > android:id="@+id/list1" > What could be the problem? Thanks.
Are you calling setContentView() first? You can't retrieve the widget until the view has been inflated, typically by setContentView(). -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription: All titles, revisions, & ebook formats, just $35/year --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---