After a successful basic authentication I want to add an account for later use. When I tried to create this account using the following code:
AccountManager
It may cause by an ACCOUNT_TYPE mismatch. check ACCOUNT_TYPE in Class and ACCOUNT_TYPE in authenticator.xml must match
private static final String ACCOUNT_TYPE = "com.someonew.syncaccount";
authenticator.xml