-2

How can I add a contact in my chat app using XMPP using open fire as server?

CSharpened
  • 11,674
  • 14
  • 52
  • 86
nitin tyagi
  • 1,176
  • 1
  • 19
  • 52
  • You should add more information – Flow Jul 13 '12 at 10:25
  • Can you give some more info as to what you have at the moment? At the moment this question is so open-ended, it is hard to provide an answer that might work for your case. – halfer Jul 18 '12 at 14:35

1 Answers1

0

Using Smack api.

Connection conn = new Connection();
conn.getRoster();
Jason Sturges
  • 15,855
  • 14
  • 59
  • 80
Rahul Akula
  • 135
  • 1
  • 10
  • Hi Rahul , Thanks for answering. I want to make a friend list in my chat application . for this i asked question how add a friend in my chat app . plz tell me.. – nitin tyagi Jul 15 '12 at 05:35
  • getRoster retrieves the contact list only list. But he wants to add a new contact to the list. – Alex Jul 17 '12 at 14:26
  • @nitintyagi Just let me know if you have any queries regarding chat application using xmpp/openfire. Thanks – Gaurav Arora Nov 23 '12 at 07:25