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

Add 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!

Leave the lines from Challenge 2 INTACT. Then, type this line as below:

Toast.makeText(this, "anything", Toast.LENGTH_LONG).show();

1 Answer

Haha, 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();

Thank you i was too confused