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 trialPhilip Gales
15,193 PointsAndroid Activity Lifecycle Error
Not a question, more of an error that I noticed.
I downloaded the Fun Facts project, and in the FactBook class, mFacts is set as private. The video titled "Retrieving Instance State" (the fifth video at 6:46) in the "Android Activity Lifecycle" course tells us to call the mFacts variable in our main class. This obviously results in an error as the variable is set as private in another class.
Not sure if you wanted to leave a note below the video, or let confused users search for this question :)
1 Answer
Kourosh Raeen
23,733 PointsHi Philip - In the Fun Facts project from the Build a Simple Android App course mFacts
variable is set to private. However, in the version of the project that is provided as a zip file in the Android Activity Lifecycle course mFacts
is not private. You can see it in the same video you mentioned at 06:50.