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 trialMUZ141098 Tendai Matemera
4,318 PointsDon't forget to call both makeText() and show() for your second Toast notification!
how do you call the two
Toast allDoneToast = Toast.makeText(this, "All done!", Toast.LENGTH_LONG);
allDoneToast.show();
Toast.makeText(this, "All done!", Toast.LENGTH_LONG).show();
Toast.makeText(this, "Hey Hey hey Allz done!", Toast.LENGTH_LONG).show();
2 Answers
Steve Hunter
57,712 PointsThe first two lines in your code are correct.
The first line will pass the first part of the challenge, then the second will pass the second.
Give it a go! You've completed the challenge already!
Steve.
adsdev
15,583 PointsLol i thought so too. But apparently he says it doesnΒ΄t work which confuses me cuz it should
Steve Hunter
57,712 PointsIf the other lines are present too, it'll probably fail.
MUZ141098 Tendai Matemera
4,318 PointsThanks guys I actually had to comment out the third line and up it was running.but with the third line it gives errors.but now I am ok thanks once again. challenge is over.
adsdev
15,583 Pointsadsdev
15,583 Points@MUZ141098 Tendai Matemera can you specify some more ?