title: Android AccountManager.getUserData() returns null
body: <p>I have a similar problem like this <a href="https://stackoverflow.com/questions/10657658/accountmanager-getuserdata-returning-null-despite-it-being-set">AccountManager getUserData returning null despite it being set</a> But the solutions did not work for me <br></p>
  
  <p>My Authenticator.java</p>
  
  <pre><code>public class Authenticator extends AbstractAccountAuthenticator{
  
      private Context context;
      public Authenticator(Context context) {
          super(context);
          this.context = context;
      }
  
      @Override
      public Bundle editProperties(AccountAuthenticatorResponse response,
              String accountType) {
          // TODO Auto-generated method stub
          return null;
      }
  
      @Override
      public Bundle addAccount(AccountAuthenticatorResponse response,
              String accountType, String authTokenType,
              String[] requiredFeatures, Bundle options)
              throws NetworkErrorException {
          Bundle result = new Bundle();
          Intent intent = new Intent(context,LoginActivity.class);
          intent.putExtra(AccountManager.KEY_ACCOUNT_TYPE, accountType);
          intent.putExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, response);
          result.putParcelable(AccountManager.KEY_INTENT, intent);
          return result;
      }
  
      @Override
      public Bundle confirmCredentials(AccountAuthenticatorResponse response,
              Account account, Bundle options) throws NetworkErrorException {
          // TODO Auto-generated method stub
          return null;
      }
  
      @Override
      public Bundle getAuthToken(AccountAuthenticatorResponse response,
              Account account, String authTokenType, Bundle options)
              throws NetworkErrorException {
  
          return null;
      }
  
      @Override
      public String getAuthTokenLabel(String authTokenType) {
          // TODO Auto-generated method stub
          return null;
      }
  
      @Override
      public Bundle updateCredentials(AccountAuthenticatorResponse response,
              Account account, String authTokenType, Bundle options)
              throws NetworkErrorException {
          // TODO Auto-generated method stub
          return null;
      }
  
      @Override
      public Bundle hasFeatures(AccountAuthenticatorResponse response,
              Account account, String[] features) throws NetworkErrorException {
  
          return null;
      }
  
  }
  </code></pre>
  
  <p>I added an account like this </p>
  
  <pre><code>mAccount = new Account("SalesGenie", "com.ambertag.salesgenie.ACCOUNT"); 
  mAccountManager.addAccountExplicitly(mAccount, password, userData);
  </code></pre>
  
  <p>But when I try to get user data by calling <code>getUserData()</code> I get null</p>