Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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