Android: open fire xmpp

I want to make a small chat application in Android. To do this, I took the steps mentioned on this next page.

http://davanum.wordpress.com/2007/12/31/android-just-use-smack-api-for-xmpp/

It works fine if we enter the gmail credentials, for example: -

private final static String SERVER_HOST = "talk.google.com";
private final static int SERVER_PORT = 5222;
private final static String SERVICE_NAME = "gmail.com"; 
private final static String LOGIN = "myemail@gmail.com";
private final static String PASSWORD = "mypassword";

But I want to use my own server instead of gmail. I installed openfire on my system and I am very fresh in openfire, please suggest me what entries should I make for the above credentials if I use my own server.

If any request, please feel free to ask, I am always here. Thank you in advance.

+5
source share
1 answer

server_host and login / service_name.

server_host - , , login <something> @service_name, (, server_host server_host)

, xmpp.example.com, , ,

SERVER_HOST = "xmpp.example.com"
SERVICE_NAME = "example.com"
LOGIN =  "johndoe@example.com"

SERVER_HOST = "xmpp.example.com"
SERVICE_NAME = "xmpp.example.com"
LOGIN = "johndoe@xmpp.example.com"

, , , openfire ( 5222 )

+4

All Articles