 <p>No need to add custom packet listener to connection object.</p> <p>get all rosters from server</p> <pre><code>Roster roster = mConnection.getRoster(); // collection of RosterEntry from roster object Collection&lt;RosterEntry&gt; entries= roster.getEntries(); for(RosterEntry entry : entries) { Log.i("RosterName", "Name : "+ entry.getName()); Log.i("RosterName", "Name : "+ entry.getUser()); } </code></pre>