title: getAuthToken y Android not calling any Callback
body: <p>I've got an application in Android and I'm trying to use AccountManager to get the AuthToken and do things with Facebook or Twitter. So I've got this:</p>
  
  <pre><code>AccountManager am = AccountManager.get(this);
  Account[] accounts = am.getAccountsByType("com.facebook.auth.login");
  Bundle options = new Bundle();
  Account myAccount=null;
  
      for (int i=0;i&lt;accounts.length;i++) {
          if (accounts[i].type.equals("com.facebook.auth.login")) myAccount=accounts[i];
          //options.putString("facebookUser", accounts[i].name);
      }
  
      am.getAuthToken(
              myAccount,                     // Account retrieved using getAccountsByType()
              "Manage your tasks",            // Auth scope
              options,                        // Authenticator-specific options
              this,                           // Your activity
              new OnTokenAcquired(),          // Callback called when a token is successfully acquired
              new Handler(new OnError()));
  </code></pre>
  
  <p>My two callbacks are onTokenAcquired:</p>
  
  <pre><code>public class OnTokenAcquired implements AccountManagerCallback&lt;Bundle&gt; {
  
  @Override
  public void run(AccountManagerFuture&lt;Bundle&gt; result) {
      try {
          Bundle bundle = result.getResult();
          Log.e("onTokenAcquired",bundle.getString(AccountManager.KEY_AUTHTOKEN));
      } catch (OperationCanceledException e) {
          Log.e("onTokenAcquired","operationcanceled");
      } catch (AuthenticatorException e) {
          Log.e("onTokenAcquired","authenticatorexception");
      } catch (IOException e) {
          Log.e("onTokenAcquired","IOException");
      }
  }
  }
  </code></pre>
  
  <p>and OnError:</p>
  
  <pre><code>public class OnError implements Callback {
  
  @Override
  public boolean handleMessage(Message msg) {
      Log.e("onError","ERROR");
      return false;
  }
  
  }
  </code></pre>
  
  <p>I'm following the Android Developer guide (http://developer.android.com/intl/es/training/id-auth/authenticate.html). So, I've got two options, on error or on token acquired, in each one I've got a Log.e() to read SOMETHING, but none is being writed. </p>
  
  <p>Can anybody help me? If I was getting an error or the token was not being acquired at least I would have something to work on, but I just don't know what's happening. </p>