×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    158

    sending msg from nokia to sony erricson

    hi ppl,i used the following codes to send msg...
    it works fine for nokia(msg receiver)...but not able to receive thru sony erricson...wat modification i have to do....pl. its really urgent


    mess_con=(MessageConnection)Connector.open("sms://:5000");
    txt=(TextMessage)mess_con.newMessage(MessageConnection.TEXT_MESSAGE);
    String str="sms://"+"9952293822";
    txt.setAddress(str);
    txt.setPayloadText(getmessage);

    Thread thread=new Thread()
    {
    public void run()
    {
    try{
    mess_con.send(txt);
    mess_con.close();

    }
    catch(Exception e)
    {

    }

    }
    };
    thread.start();
    }
    catch(Exception ex)
    {

    }


    }


    nolia to sony ericcson inbox....
    is is some prob with port no?

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: sending msg from nokia to sony erricson

    Hi jselvakumar,

    if you're trying to send a SMS directly to phone INBOX, then you should specify port 0 when creating your MessageConnection.

    Pit
    Last edited by jappit; 2008-10-01 at 12:59.

  3. #3
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    158

    Re: sending msg from nokia to sony erricson

    ya..thanx man its working....
    but i have one doubt if i use port no as 5000,i couldnt get the msg in sony ericcson inbox whereas it worked in nokia phones inbox with same port no as 5000....why is it like dat?

  4. #4
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: sending msg from nokia to sony erricson

    If there is no application listening to the port 5000 or whatever port you are using, phones behave differently. On some phones the SMS ends in the inbox, on some phones it just disappers.

    Hartti

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×