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
Elizabeth Johannson
1,442 PointsCode Challenge: Shaking it Up
I am stuck on the code challenge in the shaking it up section of the crystal ball app.
I added the super line, but something is still wrong. What am I missing?
public void onCreate(Bundle savedInstanceState) {
super.onCreate(Bundle savedInstanceState);
I've watched the video several times now. This is the longest I have been stuck on something.
4 Answers
Ryan Bend
5,951 PointsNot an expert but I had the same problem, remove the 'Bundle' from the super. onCreate method like so:
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
If someone could explain exactly what's going on there I'd appreciate it as well.
Elizabeth Johannson
1,442 PointsThanks, it worked.
But I don't understand why either.
Maybe someone will give us some tips on what is happening there.
Ben Jakuben
Treehouse TeacherGlad you got it working! This question was asked a while back, and I gave an explanation about it there that will hopefully explain it for you. :)
Elizabeth Johannson
1,442 PointsThanks for the link Ben. I think I get it now.
I have found that the forum is difficult to search. I don't want to keep repeating questions that have been already asked and answered, but it isn't always easy to find out if a similar question has been asked.
It might help if there were a section in the forum for each project, although it understand that you don't want it to become unwieldy.
I did try searching several different terms before posting this question but the thread you linked to did not come up.
Ben Jakuben
Treehouse TeacherSearch in the Forum is actually kind of broken since the redesign a few weeks ago. :-/ It should hopefully be fixed soon. We also would like to include more intelligent links to the forum from videos and code challenges but that's probably a bit further off. Either way, thanks for the feedback!