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

What's the allDoneToast part for? I thought i followed directions exactly?

So i am stuck on this question: http://teamtreehouse.com/library/build-an-android-app/testing-and-debugging/making-a-toast

I followed the directions exactly but it doesn't mention anything about the allDoneToast part thats waiting for you in the text editor.

Any help would be much appreciated!

Toast.makeText (this, "All done!" Toast.LENGTH_LONG) allDoneToast;

1 Answer

The allDoneToast is the variable that you will be using to store the Toast.

See below:

Toast allDoneToast = Toast.makeText(this, "All done!", Toast.LENGTH_LONG);

In the video, Ben does something similar to this around 1:30.

Edit: Also, it looks like you forgot the comma between "All done!" and Toast.LENGTH_LONG.

Thank you so much!