title: How to remove account in AccountManager in Android
body: <p>I am trying to remove a custom account in AccountManager.</p>
  
  <p>This is my code :</p>
  
  <pre><code>final Handler handler = new Handler (); 
  
  AccountManagerCallback&lt;Boolean&gt; callback = new AccountManagerCallback&lt;Boolean&gt;()
          {
              @Override
              public void run(AccountManagerFuture&lt;Boolean&gt; arg0)
              {
                  String test = "test";
              }
          };
  
  AccountManagerFuture&lt;Boolean&gt; bool = am.removeAccount(account, callback, handler);
  </code></pre>
  
  <p>Permissions I'm using :</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"&gt;&lt;/uses-permission&gt;
  &lt;uses-permission android:name="android.permission.MANAGE_ACCOUNTS"&gt;&lt;/uses-permission&gt; 
  &lt;uses-permission android:name="android.permission.GET_ACCOUNTS"&gt;&lt;/uses-permission&gt; 
  &lt;uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"&gt;&lt;/uses-permission&gt;
  &lt;uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"&gt;&lt;/uses-permission&gt;
  </code></pre>
  
  <p>The account is never removed and the callback never called, any idea ? No trace in logs</p>