Android SyncAdapter with 2 kind of accounts

90 Views Asked by At

I'd like to use a SyncAdapter for my application. The SyncAdapter needs an Account. In my app, there can be authenticated users and also anonymous ones. How to deal with that?

Create a fake account (anonymous) with the same Authenticator? And manage that when the user login (delete it....)? Or is there another good way to do that? Two Authenticators ? Two SyncAdapters?

Thanks for your help.

1

There are 1 best solutions below

0
On

Finally, I've created an Anonymous account, and if the user authenticates, i remove it.