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

Android Build a Simple Android App (2014) Testing and Debugging Making a Toast

Toast 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
Stone Preston
42,016 Points

your 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);

Thanks Stone! I don't know why that one gave me so much trouble. I super appreciate it!

Casey Clayton
Casey Clayton
16,708 Points

All 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);

Thanks Casey! I don't know why I couldn't figure that out. Much appreciated!