Accounts and AccountManager
Understanding custom accountsauthentication