What is the simplest way to create a custom account on Android? So far I've read the documentation: Creating a Custom Account Type, but it certainly didn't help a lot (too vague info). I tried reading the example from LastFm but certainly they did things a bit too much elaborately which I quite didn't understand well since I'm just an Android beginner with the accounts. I know its not as simple as calling:
final Account account = new Account(mUsername, your_account_type);
mAccountManager.addAccountExplicitly(account, mPassword, null);
because this would trow an exception.
So far I understood that I need to use an AccountAuthenticatorActivity
and a service that works as authenticator.
Any help that would point me in the right direction would be much appreciated.