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 trialkyle rebstock
2,019 Pointsbut lets now set the TextView's contents with whatever is in the EditText... lolwut?
So if I only have a beginner's understanding of Java and you want me to write Java in this course. Thanks. If anyone has any input on how this is done, a good resource for Java documentation, and maybe a better understanding of what this question is even asking me to do. Regards and Thanks in advance.
Evan Anger, thanks so much for the reference material! I will study up!
Ben Jakuben, thanks for the response. I really appreciate the clarification. Now that I have started the track I feel rather silly. In the future for reference, it might be nice to have a warning somewhere before you start that recommends pre-reqs. That is unless there already is and I just completely missed it. Thanks again anyhow!
Ben Jakuben
Treehouse TeacherSorry for your trouble! As others have mentioned, this is an intermediate/advanced course that assumes you've taken our other Android courses, which do cover how to get this data. This code challenge is intended as a warm-up before you get into the project, but we can take another look at it if it is causing problems.
We could add a hard pre-requisite to this course but I prefer to generally avoid prereqs and rely on soft recommendations or following the track instead.
Anyhow, thanks for the feedback. The rest of the challenges cover directly what is covered in the course. :)
4 Answers
Harry James
14,780 PointsHello,
Android Data Persistence is actually a course for those Intermediate with Java/Android. I recommend that you take a look at the Android Track which will start you out at the beginner stuff and then you can move on to things like Android Data Persistence.
Teamtreehouse do not expect you to know all of this stuff when you're first starting. The course you looked at was not designed for beginners.
So, either go ahead and follow the track above or, take a look at Build a Simple Android App which is a Beginner course. This will teach you all of the basics of Java/Android so that you can get started!
Hope it helps!
kyle rebstock
2,019 PointsThanks, I would hope that there is some clarification on what the question is actually asking somewhere on the internet. I didn't think that the material was any more difficult than the other 20 languages that I have learned. I just think that there "should always" be compliment material to every course, and I'll also add again that I don't understand the question as it is very foggy with no previous examples or discussion. Why would it ask a question on something un-discussed in the course without any extra material offered to learn from.
Thank you again for such a quick response and clarification as to the difficulty level of the course. I should have the beginners course finished very quickly as this will be the second one I have done. The other was at Udacity.com with the Google team. I will be ready to move on to this course today.
Frank Overton
1,166 PointsDon't test on things that aren't covered in the course. If the course can't have taught it, it will lead to great distress trying to determine where the answer was supposed to come from.
Ben Jakuben
Treehouse TeacherThe attempt here was to cover something that has been covered a few times in previous courses - to warm up your brain by reviewing a concept. Sounds like we may be missing the mark, though, so thanks for the feedback! I'll think about how we might change this one.
Frank Overton
1,166 PointsPerhaps link the challenge questions to the course that covers them? I'm not advanced enough to understand the specifics of the randomized question, but I assume that the object "question" has variables set for the text of the question, the possible answers, and which is correct. If a variable was added that was the ID# of the video, that could be used in the creation of a list of "recommended videos for review", that was based on the questions that were answered incorrectly, as opposed to simply offering the previous video.
As a whole, I love this site and out of the first 1000pts, this is the first thing that seemed counterintuitive. So the problem might also be that you set the bar too high by being so awesome in the first place. :-)
Devinder Sodhi
5,493 PointsI second the initial suggestion. If there is material from the past, maybe a link to videos that cover it would speed up the review process. Something along the lines of "don't remember this stuff? try this link"
Evan Anger
Treehouse Guest TeacherEvan Anger
Treehouse Guest TeacherHi Kyle sorry you ran into a little hiccup here but hopefully this will get you going.
Mastery of Java is not required for this course only some practice on previous concepts covered for the Android SDK.
For this code challenge what we were looking for was how to take the contents (text or String information) from EditText and set it into a TextView. To do this you will need to access the TextView's getText method and combine this with the EditText's setText method.
So you should be doing something like...
textView.setText(editText.getText()); //almost correct
Since editText.getText() returns an editable object you also have to toString() to get a valid String object in the end.
So something like this should work.
http://developer.android.com/reference/android/widget/EditText.html#getText()
I believe most of these concepts were covered in the Building a Simple Android App, but it takes a couple reps in order to make them stick.
Hopefully this helps!