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 trialMilan Epps
1,077 PointsToast Test challenge 1 of 3
Here's what I have: Toast.makeText(this, "All Done!", Toast.LENGTH_LONG); I'm not sure what to do with the: allDoneText part.
2 Answers
Stone Preston
42,016 Pointsyour statement is correct. However you need to assign the return value of your Toast.makeText method call to the allDoneToast variable:
Toast allDoneToast = Toast.makeText(this, "All Done!", Toast.LENGTH_LONG);
Casey Clayton
16,708 PointsAll it's wanting you to do is set the allDoneText variable equal to the toast code that you already have provided here.
Like so:
Toast allDoneToast = Toast.makeText(this, "All Done!", Toast.LENGTH_LONG);
Milan Epps
1,077 PointsThanks Casey! I don't know why I couldn't figure that out. Much appreciated!
Milan Epps
1,077 PointsMilan Epps
1,077 PointsThanks Stone! I don't know why that one gave me so much trouble. I super appreciate it!
Stone Preston
42,016 PointsStone Preston
42,016 Pointsno problem : )