×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    10

    Question SMS Send problem

    hi all,

    I have a problem when trying to send SMS.

    I use the following code

    String address = "sms://"+phoneNumber+":"+portNum; // portNum = 50000;

    MessageConnection smsconn = (MessageConnection) Connector.open(address);
    TextMessage txtmessage = (TextMessage) smsconn.newMessage(MessageConnection.TEXT_MESSAGE);
    txtmessage.setAddress(address);
    txtmessage.setPayloadText(message); // message = Hello world;

    smsconn.send(txtmessage);
    smsconn.close();

    Note: I use S60 3rd Edition SP2 SDK.

    please help me.

    Regards,
    NaSSaR
    Last edited by NaSSaR; 2008-05-05 at 13:03.

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

    Re: SMS Send problem

    Hi NaSSaR,

    which kind of problem do you have with your code? Does it throw an Exception? Does it simply hang?

    Pit

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    10

    Re: SMS Send problem

    dear Pit,

    In fact an alert shown and this is its message
    "Application Closed: !jes-8d1-java-comms@f5fcad0 EUSER-CBase 21"
    and the application closed.

    This alert does not apear with an exception, I put more than one exception in my code and try to print a stack trace for it; but unfortunately no stack trace printed. this alert only is shown.

    thanks

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

    Re: SMS Send problem

    This appears to be an error of the emulator itself (some infos available here: http://discussion.forum.nokia.com/fo...d.php?t=105734). Unfortunately, I'm not able to help you with that. Maybe you could try testing on another emulator, even if it's not an optimal solution of course..

    Pit

  5. #5
    Registered User
    Join Date
    Apr 2008
    Posts
    10

    Re: SMS Send problem

    Dear Pit,

    Thank you very much for trying to help me.

    Regards
    NaSSaR

  6. #6
    Registered User
    Join Date
    Apr 2008
    Posts
    10

    Talking Re: SMS Send problem

    Hi all,

    I found the solution of this problem . The simple solution is to put
    the Message Center Number for the emulator so this alert will be disappears.

    Thanks for all.


    NaSSaR

Similar Threads

  1. SMS PROBLEM SEND A RECEIVE USING AT COMMAND
    By coldark in forum General Messaging
    Replies: 1
    Last Post: 2009-03-09, 13:40
  2. N91 SMS send and receive problem.
    By Frederik Buchholzer in forum General Messaging
    Replies: 1
    Last Post: 2008-03-11, 21:08
  3. Use WiressToolkit2.0 to send SMS to N3650 emulator.
    By akokchai in forum Mobile Java General
    Replies: 1
    Last Post: 2003-03-31, 08:46
  4. Replies: 0
    Last Post: 2002-06-03, 03:11

Posting Permissions

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