I'm creating app which logs in, send message to one of the contact and logouts. I'm using listener to obtain information that messenger is ready to send messages (contactListInitCompleted), then i send messages (messenger.sendText()) and then i perform logout. The problem is that it does not work because logout happens before message are sent and messages are discarded. I did NOT find any event in a listener interface which tells me that message is sent and i can perform a logout.. Also there is not sendText() method with option for thread block. There is some on Switchbiard interface. I think there must be an event which tells that message is sent.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you send a message the contact must be your contact and also in FL. Otherwise you will not get any events/exceptions.
I case you send a message to an ofline person at least I will get a event through the MsnMessengerListener.exceptionCaught listener. exceptionCaught: ErrorCode 217 , User not on-line
This is not the best way to handle this. There should be an additional listener interface for message events.
Sincerelly, Ian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Did you ever figure this out? I am also writing an app that logs in, sends a message and logs out. I was wondering if there was a way to determine if a message was sent. Any help would be greatly appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm creating app which logs in, send message to one of the contact and logouts. I'm using listener to obtain information that messenger is ready to send messages (contactListInitCompleted), then i send messages (messenger.sendText()) and then i perform logout. The problem is that it does not work because logout happens before message are sent and messages are discarded. I did NOT find any event in a listener interface which tells me that message is sent and i can perform a logout.. Also there is not sendText() method with option for thread block. There is some on Switchbiard interface. I think there must be an event which tells that message is sent.
If you send a message the contact must be your contact and also in FL. Otherwise you will not get any events/exceptions.
I case you send a message to an ofline person at least I will get a event through the MsnMessengerListener.exceptionCaught listener. exceptionCaught: ErrorCode 217 , User not on-line
This is not the best way to handle this. There should be an additional listener interface for message events.
Sincerelly, Ian
Did you ever figure this out? I am also writing an app that logs in, sends a message and logs out. I was wondering if there was a way to determine if a message was sent. Any help would be greatly appreciated.