title: Android account Google getauthtoken value null
body: <p>My code:</p>
  
  <pre><code>Account[] accts = mgr.getAccountsByType("com.google");
  Account acct = accts[0];
  System.out.println("account:" + acct);
  
  AccountManagerFuture&lt;Bundle&gt; acc=mgr.getAuthToken(acct, OAUTH2_SCOPE, null, null,
                      null, null);
  Bundle authTokenBundle = acc.getResult();
  String authToken = authTokenBundle.get(AccountManager.KEY_AUTHTOKEN).toString();
  System.out.println("authtoken:"+authToken);
  </code></pre>
  
  <p>The code works after every 1 day. The authentication token comes today but it wont come tomorrow and it works again the day after that. A very weird problem.</p>
  
  <p>my <code>OAUTH2_SCOPE = "oauth2:https://www.googleapis.com/auth/userinfo.profile"</code></p>
  
  <p>the <code>getAuthToken()</code> function returns null value.</p>