> The problem is that this code doesn't works, and when I try to debug
> it, it seems that it's not possible to find the button. (the button
> value is null).
> Any suggestion?

Your findViewById() is asking the activity to find the button. My
interpretation of your code is that the activity does not have the button;
rather, the view you inflate has the button. Hence, you need to call
findViewById() on that view, not on the activity.

If this doesn't line up with what you're seeing, post back with more details!

--
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.2 Published!



--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to