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 trialSaul Tercero
270 PointsAssigning Profile Pictures to Users from Android Gallery!?
How do I allow the User to assign a picture as their profile picture without using Gravatar? I'm working on a project outside of Ribbit, although Gravatar is very useful I won't be using it on my own project. Does anybody know a better way or a tutorial to implement this method of adding profile pictures to a User's preference?
1 Answer
Doug Ray
7,493 PointsSo Gravatar is basically just hosting the images for your users avatars. If you wanted to you could go the route of having a server to host your users created avatars and just have the preference contain a link on your server to their avatar. Then in your app you would get the link from shared preferences, get the image then put it as the image views source. That however is just one of the many ways you could do this without Gravatar. Buttttttttttttt the whole point of 3rd party api's like Gravatar is if you dont want/need to do all that coding yourself and instead just use theirs. There are pros and cons to using a 3rd party library so you have to figure out if its worth it for your project.
Hope this helps Your friendly neighborhood mod Doug.