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

Ricky Sparks
Ricky Sparks
22,249 Points

How would one add a dialog pop-up after timer out in snapchat app

Dialog: -after snapchat photo is done counting down -prompt user with yes or no

Ken Alger
Ken Alger
Treehouse Teacher

Ricky;

Are you wanting to reset the timer after the user responds "yes" and continue on to the delete functionality if they select "no", or something similar?

Ken

Ricky Sparks
Ricky Sparks
22,249 Points

So the picture is done counting down and then user can click yes or no. The picture also want be deleted

Ken Alger
Ken Alger
Treehouse Teacher

So the results of the popup would determine if the picture is deleted or not?

Ricky Sparks
Ricky Sparks
22,249 Points

note: home room is over get back when school lunch is in sorry..

Ricky Sparks
Ricky Sparks
22,249 Points

The picture will be saved but not view-able again until both two users agree on the photo exchange.

I watched a video: that showed alert dialog code being added to MainActivity.java but I think in my case I should add it in ViewImageActivity.java