×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    2

    Message cannnot be displayed problem in sms App

    Hi,

    I created an sms application for the motorola A810. Everything works fine except when i send a message to older nokia phones or nokia phones that don't support java. These phones display a "message cannot be displayed" error. All other phones from different manufactures(LG,Motorola) display the message correctly

    Also note i haven't used any specific port while sending my message. Still the problem arises

    Here is the excerpt of the code

    else if(label.equals("Send"))
    {
    try
    {
    clientConn=(MessageConnection)Connector.open("sms://"+name1);
    }
    catch(Exception e) {
    alert = new Alert("Alert");
    alert.setString("Unable to connect to Station because of network problem");
    alert.setTimeout(2000);
    display.setCurrent(alert);

    }
    try {
    TextMessage textmessage = (TextMessage) clientConn.newMessage(MessageConnection.TEXT_MESSAGE);
    textmessage.setAddress("sms://"+name1);
    textmessage.setPayloadText(Address1);
    clientConn.send(textmessage);
    }
    catch(Exception e)
    {
    Alert alert=new Alert("Alert","",null,AlertType.INFO);
    alert.setTimeout(Alert.FOREVER);
    alert.setString("Unable to send");
    display.setCurrent(alert);

    }
    if (clientConn != null)
    {
    try
    {
    clientConn.close();
    }
    catch (Exception e)
    {
    Alert alert=new Alert("Alert","",null,AlertType.INFO);
    alert.setTimeout(Alert.FOREVER);
    alert.setString("Unable to close connection");
    display.setCurrent(alert);
    }

    }
    }

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Message cannnot be displayed problem in sms App

    What is the value of "Address1"? Does it contain only Western European characters, or something else (Cyrillic, Hindi, Chinese...)?

    Does the problem only occur if you run the application on the Motorola? Do you have the same problem if you run the app on a Nokia or Sony Ericsson?

    Graham.

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    2

    Re: Message cannnot be displayed problem in sms App

    It's a sms app for touch screen phones with a custom on screen qwerty keyboard. And it contains only wesern european characters(English).

    I hav't tested it on other touch screen phones yet since i dont have access to any other phone models

  4. #4
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Message cannnot be displayed problem in sms App

    I assume that the devices which fail to receive your messages are able to receive messages normally. So, there are two possibilities.

    1. Your application is sending something strange.
    2. The device is sending something strange.

    I suggest you write a very small test MIDlet that simply sends a test string. See if you can reproduce the problem. Then try it on another phone.

    Graham.

Similar Threads

  1. read last sms details (message center number)
    By impazzito in forum Symbian
    Replies: 1
    Last Post: 2009-06-23, 04:01
  2. problem to send a service loading message push for 8310
    By alinesimon in forum General Messaging
    Replies: 1
    Last Post: 2002-05-06, 12:39
  3. Problem to send a service loading push message for 8310
    By alinesimon in forum General Messaging
    Replies: 1
    Last Post: 2002-05-06, 11:19
  4. Problem to send a service loadinfd push message for 8310
    By alinesimon in forum Smart Messaging
    Replies: 1
    Last Post: 2002-05-03, 10:49

Posting Permissions

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