Bro, I had the same situation. Searched everywhere, but no luck. There are already very few resources and manuals for the Android authenticator. I also used the same udinic source : write your own underwriter authenticator .
It was a very lame and small mistake. I actually changed my accountType in authenticator.xml and forgot to change the AccountGeneral class. Both must be the same, otherwise you will not be bound to the AuthenticatorService for callbacks.
** authenticator.xml
<?xml version="1.0" encoding="utf-8" ?><account-authenticator xmlns:android="http://schemas.android.com/apk/res/android" android:accountType="com.alfainfinity.fidodo" android:icon="@drawable/ic_navigate_before" android:smallIcon="@drawable/ic_navigate_before" android:label="@string/label" android:accountPreferences="@xml/prefs"/>
** AccountGeneral.java
package com.alfainfinity.fitdodo.Boundary.Handlers.AccountHandlers; public class AccountGeneral { public static final String ACCOUNT_TYPE = "com.alfainfinity.fidodo"; public static final String ACCOUNT_NAME = "FitDodo"; public static final String AUTHTOKEN_TYPE_READ_ONLY = "Read only"; public static final String AUTHTOKEN_TYPE_READ_ONLY_LABEL = "Read only access to an FitDodo account"; public static final String AUTHTOKEN_TYPE_FULL_ACCESS = "Full access"; public static final String AUTHTOKEN_TYPE_FULL_ACCESS_LABEL = "Full access to an FitDodo account"; public static final ServerAuthenticate sServerAuthenticate = new ParseComServerAuthenticate();
}
Hope you find this helpful.
Prince bansal
source share