@Override
    public IBinder onBind(Intent intent) {
        return intent.getAction().equals(ACTION_AUTHENTICATOR_INTENT) ? getAuthenticator()
                .getIBinder() : null;
    }
Authenticator service that returns a subclass of AbstractAccountAuthenticator
in onBind()
app/src/main/java/com/github/pockethub/android/accounts/AccountAuthenticatorService.java