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 trialRonny Kibet
47,409 PointsHey 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
Treehouse TeacherI'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.
Ronny Kibet
47,409 PointsHey Ben thank you man.
John jones
65 PointsCan you display a comment feature using picasso where users can comment on the image?
Ben Jakuben
Treehouse TeacherBuilding 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.
John jones
65 PointsThanks 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?
John jones
65 PointsJohn jones
65 PointsCan you display a comment feature using picasso where users can comment on the image?