code: public void connect(String tokenID, final Object initialPresence, Context context, final ConnectCompletionListener completionListener) {
          if ((tokenID != null) && (tokenID.length() > 0)) {
              connectionInProgress = true;
              appContext = context;
  
              APIDoOpen request = new APIDoOpen(context, baseURL) {
                  @Override
                  public void transactionComplete() {
                      super.transactionComplete();
  
                      if (success) {
                          // Remember the presence value to set once connected
                          presence = initialPresence;
  
                          signalingChannel = new RespokeSignalingChannel(appToken, RespokeClient.this, baseURL, appContext);
                          signalingChannel.authenticate();
                      } else {
                          connectionInProgress = false;
  
                          postConnectError(completionListener, this.errorMessage);
                      }
                  }
              };
  
              request.tokenID = tokenID;
              request.go();
          } else {
              postConnectError(completionListener, "TokenID must be specified");
          }
      }
docs: Connect to the Respoke infrastructure and authenticate with the specified brokered auth token ID.
  
  @param tokenID             The token ID to use when connecting
  @param initialPresence     The optional initial presence value to set for this client
  @param context             An application context with which to access system resources
  @param completionListener  A listener to be called when an error occurs, passing a string describing the error