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

Code Challenge: Activity Life Cycle?

hi i need help with this question,

http://teamtreehouse.com/library/the-activity-lifecycle

i am not sure what i am doing wrong here can you show me a correct example of what i am supposed to do at this point?

on line 16 i have put this

super.onCreate();

can anyone give tell me what i should put there

thanks for you help

chris

2 Answers

Hello Chris Collins, did you check out what the error is?

When you type super.onCreate(); treehouse shows you an error

Bummer! Don't forget to include the same parameter for 'super.onCreate()' that is required for this 'onCreate()' method.

The onCreate method takes a Bundle as a parameter, so that would be savedInstanceState in this case.

With that said, you should be able to pass the challenge. Let me know if you have any questions.

thanks for the help!

ive completed the challenge now