Code example for Intent

Methods: getAction

0
 
    private static BootstrapAccountAuthenticator AUTHENTICATOR = null;
 
    @Override 
    public IBinder onBind(Intent intent) {
        return intent.getAction().equals(ACTION_AUTHENTICATOR_INTENT) ? getAuthenticator().getIBinder() : null;
    } 
 
    private BootstrapAccountAuthenticator getAuthenticator() { 
        if (AUTHENTICATOR == null)
            AUTHENTICATOR = new BootstrapAccountAuthenticator(this);
        return AUTHENTICATOR;
    } 
}