title: AccountManager getAuthToken() throwing java.lang.IllegalArgumentException: no such account
body: <p>When I do the following getAuthToken() method call,</p>
  
  <pre><code>final AccountManagerFuture&lt;Bundle&gt; future = AccountManager.get(this)
                  .getAuthToken(account, authTokenType, null, this, null, null);
  </code></pre>
  
  <p>it does work on the device properly, but it throws IllegalArgumentException on the emulator.</p>
  
  <pre><code>01-21 02:39:41.660: E/AndroidRuntime(1143): java.lang.IllegalArgumentException: no such account
  01-21 02:39:41.660: E/AndroidRuntime(1143):     at android.os.Parcel.readException(Parcel.java:1465)
  01-21 02:39:41.660: E/AndroidRuntime(1143):     at android.os.Parcel.readException(Parcel.java:1415)
  01-21 02:39:41.660: E/AndroidRuntime(1143):     at android.accounts.IAccountManager$Stub$Proxy.getAuthToken(IAccountManager.java:929)
  01-21 02:39:41.660: E/AndroidRuntime(1143):     at android.accounts.AccountManager$5.doWork(AccountManager.java:923)
  01-21 02:39:41.660: E/AndroidRuntime(1143):     at android.accounts.AccountManager$AmsTask.start(AccountManager.java:1472)
  01-21 02:39:41.660: E/AndroidRuntime(1143):     at android.accounts.AccountManager.getAuthToken(AccountManager.java:921)
  </code></pre>
  
  <p>I have added all required permissions in the Manifest file.</p>