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 ) ; }
Set or change the active list to listName .