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
Phil White
Courses Plus Student 9,519 Pointsstuck on android debugging third code challenger
Add a second Toast notification that combines these two lines into one line (make sure you leave the first two lines intact!). For this second Toast, chain the show() method to the makeText() method, and use whatever String message you want.
2 Answers
Stone Preston
42,016 Pointsit looks like you removed the line from task 2. you need to have the code for all 3 tasks. so add that line back in and it should work.
Toast allDoneToast = Toast.makeText(this, "All done!", Toast.LENGTH_LONG);
allDoneToast.show();
Toast.makeText(this, "All done!", Toast.LENGTH_LONG).show();
Phil White
Courses Plus Student 9,519 PointsAwesome it worked thanks again!
taubin
8,705 PointsI would recommend changing the text from "Leave the first two lines intact" to "leave the first three lines intact"
Having it ask to only leave the first two lines, led me to deleting the third, and entering the code on line three instead of leaving it and putting it on four. I only came here after googling to find out what I might have done wrong, which led me to redo line three and having it complete properly once that line was re-added.
Phil White
Courses Plus Student 9,519 PointsPhil White
Courses Plus Student 9,519 PointsThis is the code you start with