nurahmandani / asmack

Automatically exported from code.google.com/p/asmack
Other
0 stars 0 forks source link

chatManager.createChat does not seem to working properly after a second login #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Problem:
I am trying to create a chat between two users, and although it works the
first time around. After I disconnect and try to create a chat again... I
can only send messages but never receive them !! It seems like the
receiving part of the application only works the first time around !? 

Method used:
I 'createChat' when a user clicks a roster entry. Likewise, I have
implemented a packer listener to listen for chat type messages only, and
once an initial message is received from one of the buddies, I 'createChat'
again just like when I want to initiate a chat.. which all works fine but
only the first time around... I can receive as many messages as I want and
display them appropriately too on my listview... but after I close my
activity and disconnect I can only send messages and never receive them
properly... meaning that although I can see the messages being received in
the logCat they don't seem to make it through to the listview. I have a
feeling this is probably because the messages are no longer associated with
the chat that I created.

What is the expected output?
I should be able to receive and send messages no matter how many times I
login or logout !

What do you see instead? (Please attach a debug enabled logcat)
log.txt attached already

What version of aSmack / Android / Device do you use?
the latest one

What server do you use? Is there a public server to reproduce the problem?
openfire

Original issue reported on code.google.com by azizsab...@gmail.com on 31 May 2010 at 9:09

Attachments:

GoogleCodeExporter commented 9 years ago
 can you paster you code ,perhaps is not the same chat

Original comment by zengqin...@gmail.com on 31 Mar 2011 at 1:26