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 Self-Destructing Message Android App Retrieving and Viewing Messages Using Picasso to View Images from the Web

Mason Reaves
PLUS
Mason Reaves
Courses Plus Student 3,898 Points

Image not showing in larger of 2 devices

I've got the app running on two different devices, a 4'' phone and a 7'' tablet, using all of the same layouts, code, etc. If I send a picture message from the larger tablet to both the tablet and the smaller phone, the picture appears. However, if I take and send a picture from the smaller phone to both the phone and the larger tablet, the image will only display on the phone and fails to display on the tablet. . The other functions including the delete and the 10 second timer still work , so I think it has something to do with either Picasso or the ImageView and layout, but I can't figure out how to fix this. Suggestions?

1 Answer

Chao Zhong
Chao Zhong
6,237 Points

Maybe try to add the 2nd param callback to the picasso into() function? Check the result, and also check the ImageView's uri and state?