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
Yuval Keren
7,190 PointsSelf-Destructing Message Android App: 10 != 10
How one could fix the 10 seconds to start counting once the Image/Video have been downloaded completely ?
1 Answer
Ben Jakuben
Treehouse TeacherGreat question, Yuval. You'd have to trigger the timer once the download is complete. You can do this different ways depending on how you are downloading the image. With Picasso, you should be able to use a different into method that calls a callback when the download is complete: http://square.github.io/picasso/javadoc/com/squareup/picasso/RequestCreator.html#into(android.widget.ImageView,%20com.squareup.picasso.Callback)