Display google profile picture of a contact in Android app

Hi all,

We are creating an Android app that will use google authentication, as such, all users will have a google account.

Part of the apps functionality is that a user can "connect" with other users, and so they will have a list of contacts.

We would like to be able to take the email address of the contact and retrieve the google profile picture and display it.

Does anyone know how to do this, currently we haven't found any useful information, just depreciated APIs.

We are using android 9 (in case that makes a difference).

Any help is very much appreciated.

resourcesys.
resourcesysAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chris Harte2015 Top Expert (Most Article Points)Commented:
Have you tried this from the android developer site?
https://developers.google.com/identity/sign-in/android/people

Also bear in mind that google+ no longer exists.
resourcesysAuthor Commented:
Hi Chris,

Thanks for your response.

The solution I am going with is to store the URL of the users profile picture, then when another user is looking at the application, we simply call the picture from the URL.

Not an ideal solution, but it works.

resourcesys.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Google

From novice to tech pro — start learning today.