when i move my testapp to the sdcard, my custom account-authenticator (com.heidi.AccountStuff) not exist anymore.
if i would add a new account like this
Account account = new Account("heidi", AccountAuthenticatorService.TYPE);
AccountManager accountManager = AccountManager.get(this);
accountManager.addAccountExplicitly(account, "", null);
it will thrown a RuntimeException
java.lang.SecurityException: caller uid XXXXX is different than the authenticator's uid
ok, make sense, beacause when i output the authenticatortypes (with following code snippet):
for(AuthenticatorDescription d: accountManager.getAuthenticatorTypes()) {
Log.d("add", d.toString());
}
it will output
AuthenticatorDescription {type=com.htc.linkedin}
AuthenticatorDescription {type=com.htc.android.mail.eas}
AuthenticatorDescription {type=com.htc.sync.provider.weather}
AuthenticatorDescription {type=com.htc.android.windowslive}
AuthenticatorDescription {type=com.htc.android.mail}
AuthenticatorDescription {type=com.htc.stock}
AuthenticatorDescription {type=com.htc.lucy.account}
AuthenticatorDescription {type=com.google}
after moving the app back to the internal store, my custom type displaying in the output, like this:
AuthenticatorDescription {type=com.heidi.AccountStuff}
AuthenticatorDescription {type=com.htc.linkedin}
AuthenticatorDescription {type=com.htc.android.mail.eas}
AuthenticatorDescription {type=com.htc.sync.provider.weather}
AuthenticatorDescription {type=com.htc.android.windowslive}
AuthenticatorDescription {type=com.htc.android.mail}
AuthenticatorDescription {type=com.htc.stock}
AuthenticatorDescription {type=com.htc.lucy.account}
AuthenticatorDescription {type=com.google}
any ideas?