Ahem.
That usually means that you are passing in the wrong context when you’re
calling AccountManager.get(this).addAccountExplicitly. You need to make sure
that you’re using the same context every time you call AccountManaget.get().
This is to prevent other things from messing with accounts your service has
created.
http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-1/
src/main/java/org/mozilla/gecko/sync/setup/activities/AccountActivity.java
86: mAccountManager = AccountManager.get(getApplicationContext());
src/main/java/org/mozilla/gecko/sync/setup/activities/SetupSyncActivity.java
97: mAccountManager = AccountManager.get(getApplicationContext());
108: AccountManager mAccountManager = AccountManager.get(this);
243: AccountManager mAccountManager = AccountManager.get(this);
src/main/java/org/mozilla/gecko/sync/setup/SyncAuthenticatorService.java
137: final AccountManager am = AccountManager.get(mContext);
src/main/java/org/mozilla/gecko/sync/syncadapter/SyncAdapter.java
90: mAccountManager = AccountManager.get(context);