Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Donovan Matthysen4,370 Points
mFactLabel.setText - where does that come from? It wasn't in the "Build a simple android app class?
How do i resolve the error i'm getting? (Incomparable types?)
Michael Walker45,428 Points
I'm sure you've long since moved on from this issue by now, but hopefully this response helps others who take this class. I also noticed that some of the variables have changed. It appears the code was refactored a bit since the "Build a Simple App" class, but there is an easy fix. In this case just use the variable factTextView instead of mFactLabel and that should resolve any conflicts. :-)
Patrick Taschner7,176 Points
I'm not exactly sure what your problem is but I'll try my best to help you out :) Is it possible that you are trying to set the text of mFactLabel and the value you want to be shown is an integer or another type? If that's the case write that: mFactLabel.setText("" + VARIABLENAME); for VARIABLENAME use the name of the variable you want to be shown.
I hope that was helpful, Patrick :-)