title: Get gmail profile image and full name
body: <p>I am preparing a login page for my app. I wanted to do the same thing that  twitter is doing. They are helping the user and predefining some fields like email, name and profile pic. I managed to get the email using the <code>GET_ACCOUNTS</code> permission.</p>
  
  <p>However I cant see how I get the full name and profile pic?</p>
  
  <pre><code>    public static String getEmail(Context context)
  {
      AccountManager accountManager = AccountManager.get(context);
      Account account = getAccount(accountManager);
      if (account == null)
      {
          return null;
      }
      else
      {
          return account.name;
  
  
      }
  }
  
  private static Account getAccount(AccountManager accountManager)
  {
      Account[] accounts = accountManager.getAccountsByType("com.google");
      Account account;
      if (accounts.length &gt; 0)
      {
          account = accounts[0];
      }
      else
      {
          account = null;
      }
      return account;
  }
  </code></pre>