The Logan and Andy Morning Show

My name is Logan. His name is Aaaaaaaandroid with eight As.

May 19

caller uid is different

Yesterday’s problem is resolved. If you see an error from the AccountManagerService of the form caller uid XXXX is different than the authenticator's uid, it might be a bit misleading. The ‘authenticator’ in that message is not your authenticator class, it’s what Android understands to be the registered authenticator for the account’s type. The check that happens within the AccountManagerService looks like this:

Note that hasAuthenticatorUid() takes the account.type. This is where I’d screwed up. I was creating my Account with a type specified by a constant:

but this constant did not match the XML definition for my authenticator:

Incidentally, this is in a nutshell why I really dislike programming in XML.

2 files changed, 2 insertions(+), 2 deletions(-)