public void requestAuthTokenCallback(ErrorCode result, AuthToken authToken) { if (ErrorCode.succeeded(result)) { // Now that the user is authorized the information can be requested about which server to // stream to m_AuthToken = authToken; setBroadcastState(BroadcastState.Authenticated); } else { m_AuthToken.data = ""; setBroadcastState(BroadcastState.Initialized); String err = ErrorCode.getString(result); reportError(String.format("RequestAuthTokenDoneCallback got failure: %s", err)); } try { if (m_Listener != null) { m_Listener.onAuthTokenRequestComplete(result, authToken); } } catch (Exception x) { reportError(x.toString()); } }