-1

I'm trying to create an Android XMPP client. I've successfully tested it by connecting with GTalk but now I'm trying to connect to other free servers like Jabber but really confused because connecting to GTalk I could simply write

    ConnectionConfiguration connConfig = new ConnectionConfiguration(talk.google.com, 5222, gmail.com);---

But the procedure looks really different for other servers. Where am I stuck now?

for trying other server I registered to https://register.jabber.org/ but think I have misunderstood xmpp.

NavinRaj Pandey
  • 1,674
  • 2
  • 26
  • 40
  • No one really knows, unless you show some code or share what XMPP libary you are using. – Nikolay Elenkov Oct 17 '12 at 05:50
  • That's my code of connection class but ,I just wanted to know weather I can connect to other server in same manner or not, I mean they are not providing host-name,port and service. – NavinRaj Pandey Oct 17 '12 at 05:58
  • XMPP is a standard protocol, so it should work. You do need to know what server to connect though, so you should find out. Or run your own test server and use that for development. Again, share more details if want better answers. – Nikolay Elenkov Oct 17 '12 at 06:08
  • I have finally figured out that my code lacks SSL sot its connection are being rejected where can I learn how to do that or is there a simple example of it? – NavinRaj Pandey Oct 17 '12 at 12:04
  • It depends on what you mean by 'lacks SSL'. If you are missing the needed certificates you can add them to a custom trustore. If you are lacking SSL support, you might need to revise your code. – Nikolay Elenkov Oct 17 '12 at 12:31

2 Answers2

0

Here are the different libraries for XMPP

For java (android), you can use following:

Anshu
  • 7,783
  • 5
  • 31
  • 41
0

I've been using asmack something like here

Alexander Kulyakhtin
  • 47,782
  • 38
  • 107
  • 158
  • yes I am using asmack as well , These are my imports import org.jivesoftware.smack.ConnectionConfiguration; import org.jivesoftware.smack.XMPPConnection; – NavinRaj Pandey Oct 17 '12 at 06:14
  • I wouldn't recommend asmack from googlecode, the project has been dead since years. Instead, [have a look at this question](http://stackoverflow.com/questions/4769020/android-and-xmpp-currently-available-solutions) – Flow Oct 17 '12 at 17:37