Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Problems with getChatManager ()

$
0
0

Hello!

I have some problems with this example:

 

XMPPConnectionconnection=newTCPConnection("jabber.org");

connection.connect();

connection.login("mtucker","password");

Chatchat=connection.getChatManager()

    .createChat("jsmith@jivesoftware.com",newMessageListener(){

 

    publicvoidprocessMessage(Chatchat,Messagemessage){

        System.out.println("Received message: "+message);

    }

});

chat.sendMessage("Howdy!");

 

I am using Android SDK - http://developer.android.com/sdk/index.html

I downloaded Smack, built it, connected as an external library, then copy this example. There is only one thing that does not want to work.

 

>>Chatchat=connection.getChatManager()

 

This method just as if not. I looked him in the library and did not find him anywhere to be able cast a to a particular object. I found his declaration not just assembled files: \ Smack-master \ core \ src \ test \ java \ org \ jivesoftware \ smack \ ChatConnectionTest.java

Therefore, the question is whether this method has already been collected in the library?

 

 

Sorry for my bad English. Thank you in advance.


Viewing all articles
Browse latest Browse all 10742

Trending Articles