dButton= (Button)this.findViewById(R.id.dButton); is I think where it problem is. I played around a bit with it and realized that other functions were also throwing up an exception. Then I just created a new button, using new Button(this); and it worked fine.
So, why is dButton= (Button)this.findViewById(R.id.dButton); not working? note: dButton is part of an XML absoluteLayout that has been used as a nested view for each item on a listView. This list view is visible. and hence more than one instance of this button exists on the screen at this time. I need to detect a click on any of these buttons, and the particular button which has been clicked. Thanks, Sylvester --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---