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
John jones
65 PointsUploading images so all users can see
what direction do I want to take if I want to upload an image so that all users cansee the image in the app.for example if you were to upload an image in Instagram the image would be located in the Explorer tab for all instagram users to see in the app.
2 Answers
Harry James
14,780 PointsHey John!
When you get up to the Implementing Designs for Android course, you'll learn how to make a GridView to display images, get images from Gravatar and also use a third-party API called Picasso to display and get the images.
You'll want to change it so that you upload your image through Parse and then use Picasso to grab the image URL from Parse (Parse will generate URL's for each file uploaded).
After you've took this course, I'm sure you'll find it super easy to display images in a tab like Instagram's Explorer's tab! If you do fall into any problems on the way though, not to worry! Just ask on these forums and me or someone else will try our best to help!
Hope it helps!
John jones
65 PointsYay thanks Harry you have helped out a lot!
John jones
65 PointsJohn jones
65 PointsThanks Harry,
Do you know how I would be able to attach a Title to the top of the pictures in the grid view as well as attach the description of the picture at the bottom. For example pintrest does that. Maybe even attach a default picture next to the name of the picture in the explore page.
Harry James
14,780 PointsHarry James
14,780 PointsSure thing!
What you'll want to do is create 2 new keys in Parse: title and desc. Then, you want the user to add a title and description and with their image and upload this information to Parse.
When displaying an image, you can get the title and description from that image off Parse.
Finally, use empty TextView's so that they will be filled in with the title and description values once they are downloaded from Parse.
This may sound very confusing at first but, the courses will show you how to do everything I described above and none of it will be new. Also, if you do get confused on the way, give me a shout on this forum post - I'll try my best to help out and will usually respond within 24 hours :)
John jones
65 PointsJohn jones
65 PointsThanks, I do have one more question though. I want the user to click on the pictures that I have in grid view and take them to a page on the app that lets them look at the picture and the comments that are there as well as add their own. Am I able to just bring them to a page to view the picture on the app without having to go to Picasso? Can I use this approach:
Grab the picture and comments from the backend and the image as well and place them in a Custom XML that I created so that they see a picture that takes up 3/4 of the page and the other 1/4 will be taken by the comment feature and comments?