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 Weather App (2015) Hooking Up the Model to the View Plugging in the Data

I don't have the "getPrecipChance" in my dot syntax. What did I miss?

In my MainActivity when writing the statement mPrecipValue.setText(mCurrentWeather.getPrecipChance()); under the updateDisplay method I don't have the .getPrecipChance option. What did I miss in the CurrentWeather class? Should I just write it into the class as a member variable and add a getter and setter for it?

2 Answers

this video at 1:10 is where they have mPercipChance as a variable.

You probably missed it as it is the second to last variable and was busy typing like I usually am. I even slow some of the typing-intense videos down so I can better soak them in, or at least pause after all code blocks.

Thank you that was the problem for me. I missed that. He does teach quickly might have to watch them again in slow motion.