Creating a dummy authenticator account

I am trying to create an account in Accounts and Sync that does not require authentication. I already mentioned the SampleSync example . The key difference between the example and what I'm trying to create is authentication. I do not want to show the user authentication / registration. Is it possible to create an account directly from the authenticator service without authentication activity?

+3
source share
1 answer

The operation is AccountAuthenticatorActivitycompletely optional. If the Authenticator can authenticate without it (for example, in the case of anonymous access), there is no need for any action. Your SyncAdapter can even be encoded so as not to receive account information, as there is no need.

In your Authenticator, however, you can make it impossible to create multiple accounts, just for clarity.

+2
source

Source: https://habr.com/ru/post/1766706/


All Articles