Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor jini_1's Avatar
    Join Date
    Jan 2006
    Posts
    90
    Hi

    I have an app to send sms. It's sending messages to all phones. But when i tried to send it to 6220 through my app, the receiver phone is not getting the message. The app is not throwing any exception also...I think it's sending from app..

    The app is able to send sms to low end phones like 1100 and the message is received properly. And the app can send messages to high end phones like N91 also.

    This is the code:
    String address = "sms://" + destinationPhoneNo+ ":0";
    MessageConnection smsconn = (MessageConnection) Connector.open(address);

    TextMessage txtmessage = (TextMessage) smsconn
    .newMessage(MessageConnection.TEXT_MESSAGE);
    txtmessage.setAddress(address);

    txtmessage.setPayloadText(message.getString());
    smsconn.send((Message) txtmessage);

    Am i going wrong somewhere....Do i need to set some header information for sending sms. Plz help....

  2. #2
    Regular Contributor jini_1's Avatar
    Join Date
    Jan 2006
    Posts
    90
    Hi
    i could resolve the problem by changing the code little bit
    /*******avoided port no:
    String address = "sms://" + destinationPhoneNo;
    MessageConnection smsconn = (MessageConnection) Connector.open(address);

    TextMessage txtmessage = (TextMessage) smsconn
    .newMessage(MessageConnection.TEXT_MESSAGE);
    txtmessage.setAddress(address);

    txtmessage.setPayloadText(message.getString());
    //************
    smsconn.send(txtmessage);
    jini

Similar Threads

  1. N91 SMS sending problem
    By markmaya in forum General Messaging
    Replies: 17
    Last Post: 2007-10-01, 18:05
  2. Multiple SMS sending problem
    By kmsoomro in forum Symbian Networking & Messaging (Closed)
    Replies: 7
    Last Post: 2007-09-28, 07:01
  3. Problem in sending SMS
    By sylvia in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2006-09-27, 07:06
  4. problem when sending sms..from the midlet
    By lakshmanraob in forum Mobile Java General
    Replies: 1
    Last Post: 2005-09-22, 15:09
  5. Problem - Sending SMS with Java WMA
    By Geodonis in forum General Messaging
    Replies: 0
    Last Post: 2005-02-01, 11:57

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