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 Viewing Image Messages

Ronny Kibet
Ronny Kibet
47,409 Points

Hey I am able to take images with camera' click on a button and upload the file to parse. I need help retrieving.

As mentioned in the title, I would like to retrieve images I post to parse and display in a listview with custom adapter. Can someone point me to an adapter class that does this without getting out of memory error that causes app to crash?

PS. I am uploading images exactly as shown by Ben.

Thanks.

3 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

I'd recommend using a library like Picasso to download the images. You can use the resize(int, int) method to download smaller versions for display in the ListView. You can modify the custom ListView and adapter in stage 7 with Picasso to build what you are looking for.

Can you display a comment feature using picasso where users can comment on the image?

Can you display a comment feature using picasso where users can comment on the image?

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Building a comment feature is a little more complex, but totally doable. Picasso is a tool simply for downloading the image. You'll need to add an EditText to enter comments, then save them to the back-end with the ID of the image you are viewing. You'll then need to add a query to get all the comments for a specific image.

Thanks ben for putting my on the right direction to building that feature. How would I then display it in the app? Is there another tool besides piccasso? I have one more questions if you could answer them.

How would I go about uploading an image so that All users can see what one user uploads?