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

Mason Reaves
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?