title: Android - Get UserData using AccountManager / First and Last name of the phone owner
body: <p>I want to prepopulate some of the fields in my application to help out user when he is subscribing for the service inside my app.</p>
  
  <p>So how would I get first name and last name of device's owner. I want to use default info tied to Google account; so far I got this:</p>
  
  <pre><code>AccountManager am = AccountManager.get(this);
  Account[] accounts = am.getAccounts();
  for (Account account : accounts) {
      if (account.type.compareTo("com.google") == 0)
      {
          String possibleEmail = account.name;
          // how to get firstname and lastname here?
      }             
  }
  </code></pre>
  
  <p>I am willing to take alternative approaches if you suggest them - just as long as I can get email, firstname and lastname of the owner.</p>