noob here. I have an issue with implementing XMPP client on android using smack 4.1.0 libraries. So far I managed to have the client login to openfire server and change his status using Presence().
My problem is when I add a chat manager I get a syntax error. Here is the code:
ChatManager chatmanager = ChatManager.getInstanceFor(connect1); Chat newChat = chatmanager.createChat("user1", new MessageListener() { public void processMessage(Chat chat, Message message) { System.out.println("Received message: " + message); } });
I get an error under new MessageListener() saying that I have to implement a method which is already implemented. connect1 is derived from AbstractXMPPConnection and it is the same connection I am using to login and change status.
Any help would be much appreciated.
Thanks
0 comments:
Post a Comment