Quantcast
Channel: Ignite Realtime: Message List
Viewing all articles
Browse latest Browse all 12000

Re: Unable to get joined chat rooms - android asmack

$
0
0

sorry i did not . now i have run it thanks for indicating .

But now the problem is that i recieve the joined rooms in stanza  but getJoinedRooms function returns the empty list. i notice that it is problem with the discoverItems(user, discoNode)(In ServiceDiscoveryManager)

as it returns the very first stanza it collects (whatever is the type of packet). so in my case the reciever and sender are the same therefore the procedure goes like this:

 

  1. user send stanza of type=get
  2. user recieve the get stanza (same user) (and at this point the  PacketCollector in discoverItems function think of it as packet recieve save it as a result and got returned)
  3. returned from getJoinedRoom function with empty iterator 
  4. user sents stanza of type=result
  5. user sents stanza of type=error(not sure why which says item-not-found)
  6. user recieve stanza of type=result(user recieve result but the getjoinedRooms function already executed and returned with empty iterator)
  7. user recieve stanza of type=error

 

how could i solve this problem. i try change the code but i am not good enough to do so. is it a kinda bug? or i am saying someting wrong.

 

Thanks for the help. you are so good

 

i upload my log athttp://speedy.sh/K3RDW/log1.txt


Viewing all articles
Browse latest Browse all 12000

Trending Articles