Display google profile picture of a contact in Android app

resourcesys
resourcesys used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
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.
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.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial