Answer the question
In order to leave comments, you need to log in
Searching for Jabber users via Smack API?
I am writing an application in Java, I use this code to search for users:
UserSearchManager search = new UserSearchManager(connection);<br/>
try {<br/>
<br/>
Form searchForm = search.getSearchForm("jabber.com");<br/>
Form answerForm = searchForm.createAnswerForm();<br/>
answerForm.setAnswer("last", "DeMoro");<br/>
ReportedData data = search.getSearchResults(answerForm, "jabber.com");<br/>
<br/>
} catch (XMPPException xmppe) {<br/>
<br/>
Marishko.SystemLog("Error initializing search form fields: " + xmppe);<br/>
<br/>
}<br/>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question