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
Nick Tosto
10,611 PointsProblem extending RibbitApplication to Application class
I'm following the Make a Self-Destructing Message App tutorial and I created the RibbitApplication class and specified the name in my Android Manifest to use RibbitApplication as the starting point but it doesn't seem to be calling it when the app is launched. I added a log message before the Parse Initializer to see if it was ever getting called but it wasn't. This was causing me to get a runtime error when I clicked my signup button which said the Initializer code needed to be run before using the parse library.
I was able to get around this problem by adding the initializer code to MainActivity's onCreate but I'd like to do it the proper way. Does anyone have any idea what might be going on?
2 Answers
Nick Tosto
10,611 PointsLooks like you were on to something. I was missing the android:name = "RibbitApplication" attribute in my manifest. That fixed it.
Michael skak
239 PointsCheck the Ribbit Manifest for anything missing.