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 trialJose Nolasco
1,213 PointsAdd a second Toast notification that combines these two lines into one line. challenge 3 of 3.
I got this so far but im stuck
Toast.makeText(this, "anything", Toast.LENGTH_LONG).show(); allDoneToast.show();
I keep getting Bummer! Don't forget to call both makeText() and show() for your second Toast notification!
1 Answer
Afik Paryente
2,042 PointsHaha, nice try. But one line, means one line of code, using ';' twice make it to be 2 lines.. you should add ".show();" after the makeText command (without "" of course);
should look like: Toast.makeText(this, "anything", Toast.LENGTH_LONG).show();
Jose Nolasco
1,213 PointsThank you i was too confused
Jonathan Teng Yi Chuon
Courses Plus Student 1,203 PointsJonathan Teng Yi Chuon
Courses Plus Student 1,203 PointsLeave the lines from Challenge 2 INTACT. Then, type this line as below:
Toast.makeText(this, "anything", Toast.LENGTH_LONG).show();