Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App (2014) Basic Android Programming Initializing a Button

Matthew Griffin
PLUS
Matthew Griffin
Courses Plus Student 293 Points

Initialize the showFactButton variable using the findViewById() method like the TextView above it. The ID for the button

Can someone tell me what I am doing wrong

1 Answer

Jordan Ernst
Jordan Ernst
5,121 Points

hey Matthew do you still need some help with this question? if you can show me what you have done so far i can help you. just as a note you need to initialize the Button showFactButton; it has already been initialized to nothing. so now initialize it similar to the above line which is a TextView value.