title: Google-plus: unable to load person
body: <p>I want to have Google Plus login in my application. I could connect but unable to get current user's profile information</p>
  
  <pre><code>@Override
  public void onConnected() {
  
      String accountName = mPlusClient.getAccountName();
  
      mPlusClient.loadPerson(this, "me");
  }
  
  @Override
  public void onPersonLoaded(ConnectionResult status, Person person) {
  
      Log.d("onPersonLoaded - ConnectionResult", "" + status);
      Log.d("onPersonLoaded - person", "" + person);
      if (status.getErrorCode() == ConnectionResult.SUCCESS) {
          Log.d(TAG, "Display Name: " + person.getDisplayName());
      }
  }
  </code></pre>
  
  <p>I could get the Account Name in <code>onConnected</code> But <code>onPersonLoaded</code> gives <code>null</code> for <code>person</code></p>
  
  <p><strong>The logs show:</strong></p>
  
  <pre><code>onPersonLoaded - ConnectionResult(29861): ConnectionResult{statusCode=NETWORK_ERROR, resolution=null}
  onPersonLoaded - person(29861): null
  </code></pre>
  
  <p>From the docs <a href="http://developer.android.com/reference/com/google/android/gms/common/ConnectionResult.html#NETWORK_ERROR" rel="noreferrer">here</a></p>
  
  <blockquote>
    <p>public static final int NETWORK_ERROR</p>
    
    <p>A network error occurred. Retrying should resolve the problem.</p>
    
    <p>Constant Value: 7 (0x00000007)</p>
  </blockquote>
  
  <p>But I get the same error no matter how many times I retry. And these are the permission I use:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" /&gt;
  &lt;uses-permission android:name="android.permission.READ_PROFILE" /&gt;
  </code></pre>
  
  <p>I have no idea how to resolve this and been searching for the past 2 hours. Any help is highly appreciated, thank you.</p>