Menu

PROBLEM : Login - Send - Logout

Help
kannibul
2006-10-10
2013-04-29
  • kannibul

    kannibul - 2006-10-10

    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.

     
    • Ian

      Ian - 2006-10-13

      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

       
    • naaron

      naaron - 2008-12-10

      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.

       

Log in to post a comment.