Hi Andrea I am trying to develop a XMPP Client for Android and using open fire as the server.
can u guide me what should be used for 'service new' during configuration for conecting and login. I am Stuck at that point.. Regards Sainath On Mar 3, 4:27 am, ANDREA P <andrewpag...@gmail.com> wrote: > Hi , I am trying to develop a simple chat in Android...... > The connect and login with openfire server are ok !!!!!!!! > The only thing is that , I don't know how do I do to send and receive > a message from an other user. > > I try to create a chat between two users in this way : > > //Craete a chat beetwen user1 and user2 ;I Don't receive any > messages !!!! > > ChatManager chatmanager = connection.getChatManager(); // > connection port 5222 > > Chat newChat = chatmanager.createChat("us...@server.local", > new MessageListener() { > > public void processMessage(Chat chat, Message message) { > > System.out.println("Received message: " + > message.getBody()); > } > > }); > > try { > newChat.sendMessage("Hello from User1"); > } > catch (XMPPException e) {} > > // When the message is sent , generate an exception on User2 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---