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

getRoster -> PacketListener doesn't work.

$
0
0

hi All.i use aSmack.

 

Roster roster = tcpConnection.getRoster(); 
tcpConnection.addPacketListener(new PacketListener() {                                            
tcpConnection.addPacketListener(new PacketListener() {
@Override     publicvoid processPacket(Packet packet) {          System.out.println("processPacket->" + packet.toXML());     }}, new PacketFilter() {     @Override     publicboolean accept(Packet packet) {          System.out.println("accept->" + packet.toXML());          returnfalse;}});   

 

but packet listener doesn't work before&after getRoster.it's blocked packet listener.

please help me


Viewing all articles
Browse latest Browse all 10742

Trending Articles