Code example for AccountManager

Methods: invalidateAuthToken

0
    } 
 
	private void invalidateSession() { 
		final String authToken = getSettings().getAuthToken();
		if (authToken != null) {
			accountManager.invalidateAuthToken(MANAGED_ACCOUNT_TYPE, authToken);
		} 
		getSettings().setAccountName(null); 
		getApp().authenticate(null); 
	} 
 
 
    /* 
     * prompt account handling 
     */ 
 
    @Override 
	public void promptAccount(final ActionContext actionContext, final LoginCallback callback) {
        super.promptAccount(actionContext, callback);
 
        final Account[] accounts = getAccounts();