I\'m trying to get a user\'s profile using the new Google Sign In API introduced in play services 8.3. Other than Display Name, Email and Id, I also need user\'s gender.
For getting profile information google introduced the easiest way so far I think!
GoogleSignInAccount acct = GoogleSignIn.getLastSignedInAccount(getActivity());
if (acct != null) {
String personName = acct.getDisplayName();
String personGivenName = acct.getGivenName();
String personFamilyName = acct.getFamilyName();
String personEmail = acct.getEmail();
String personId = acct.getId();
Uri personPhoto = acct.getPhotoUrl();
}