title: Get first and last name of user using Google SignIn API in Android
body: <p>I'm developing app and using Google SignIn. In the iOS Api, I can get the first name and last name like this:</p>
  
  <pre><code>let GoogleUser = GIDSignIn.sharedInstance().currentUser
  let firstName = googleAccount.profile.givenName
  let lastName = googleAccount.profile.familyName
  </code></pre>
  
  <p>But in the Android API, I found only <code>getDisplayName()</code> that returns the full name of the user in one String. I can't find any method that returns only the first or the last name.</p>
  
  <p><a href="https://developers.google.com/identity/sign-in/android/" rel="nofollow">The Google SignIn API for Android site</a></p>
  
  <p>Thanks :)</p>