i try this code,
XMTPConnection connect;
connect = new XMPPConnection(host, port);
connect.addConnectionListener(this);
connect.login(user, password,“res”,true);
connect.addPacketListener(this,new MessageTypeFilter(Message.Type.GROUP_CHAT));
MultiUserChat m_multi = new MultiUserChat(connect, “hello@conference.java”);
after create muc i send the instance of muc in different class n create private chat the code is given below,
PrivateChat m_chat1=m_multi.createPrivateChat(Participant1);
m_chat1.addMessageListener(this);
m_chat1.sendMessage(“hi”+m_chat1.getParticipant());
but the problem is this i m unable to retrieve messege of private chat,it will retrieve when some action performing in muc.what i m doing wrong can anybody suggest me