code: public void setActiveListName(String listName) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
          // The request of the list is an privacy message with an empty list
          Privacy request = new Privacy();
          request.setActiveName(listName);
  
          // Send the package to the server
          setRequest(request);
      }
docs: Set or change the active list to listName.
  
  @param listName the list name to set as the active one.
  @throws XMPPErrorException
  @throws NoResponseException
  @throws NotConnectedException
  @throws InterruptedException