Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor jselvakumar26071988's Avatar
    Join Date
    Sep 2008
    Posts
    158
    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 jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    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 jselvakumar26071988's Avatar
    Join Date
    Sep 2008
    Posts
    158
    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
    Nokia Developer Champion hartti's Avatar
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192
    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

Similar Threads

  1. Nokia PC Connectivity能否链接到cdma手机上发送短信和其他操作?
    By bborn in forum Web Technologies and Multimedia Content- Web 技术和多媒体内容
    Replies: 2
    Last Post: 2004-05-04, 11:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved