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


Charlie Thomas
Charlie Thomas
40,856 Points

Android App Help

I have built my own android app to view my school timetable but I have a major problem in the fact the buttons are not working. Here is the link to the project on GitHub. https://github.com/Ottermad/YourTimetable. So if anyone has some time please could they have a look and see if you can suggest how I can solve the problem.

1 Answer

I branched off of your repo and found your problem. If you check my commits you should see the changes. Basically, you had two @+id/button1 and two @+id/button2. Upon further investigation, it looks like you copy and pasted your code twice in the same layout. So you actually had two of everything. Silly mistake, but it happens to the best of us. Just as a note, please try to have meaningful names for your layout items and activities. Something like @+id/getTimetableButton would be better practice. Same thing goes with your activities. Though I'm sure you were planning on re-factoring these things later :smile: Keep coding!