Menu

Anyone has code for how to add a new contact?

2007-07-11
2013-04-29
  • SpiritSeekerS

    SpiritSeekerS - 2007-07-11

    Hi, all

    i'm new to Java MSN Messenger library, anyone can kindly give me some code sample for add a new contact, thanks a lot.

     
    • PsyMonkey

      PsyMonkey - 2007-07-11

      Email email = Email.parseStr("monkey@hotmail.com");
      msgr.addFriend(email, "NickName");

      Where msgr is the MsnMessenger.

      Hope it helps a bit. :)
      If you are still lost just post again

       
    • SpiritSeekerS

      SpiritSeekerS - 2007-07-12

      mang thanks.

       
  • Tarun

    Tarun - 2011-06-29

    Hello All,
    I could not find an appropriate place to post the question so posting here.

    I have used jml APIs to builld a app to login and chat. I encountered this problem, some times for people using latest version of MSN live Messenger, they do not receive the friend request submitted by JML APIs. Any idea why does it happen?
    I understant newer MSN messenger would use MSNP19,20,21 version and JML uses MSNP15, but would this cause the above problem? I noticied this happens only for selected msnIds and few msnIds do receive the friend invitation on newer MSN messenger.

    Has anyone else come across this?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.