Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2010

    Message is not showing in sent Items folder on device-Wireless Messaging API

    Hi All,
    I have developed an j2me application in which i am sending sms to no of contacts.Its successfully sendinng sms but those are not updating on the "Sent Items" folder in the device.Please clarify me.

    Please note the part of code i have used to send the sms
    private MessageConnection connection=null;
    public void sendFunction()
                // Open the connection
                    connection = (MessageConnection)Connector.open("sms://:50000");
                   TextMessage message = prepareSMS(receiverNumber);
            }catch (InterruptedIOException ex)
                System.out.println("Exc in send SMS Inter");
               // this.listenerObj.showMessage("","Exc in send SMS Inter");
                // TODO: Exception (e.g. timeout) handling
            }catch (IOException ex)
                System.out.println("Exc in send SMS IOExce");
                //this.listenerObj.showMessage("","Exc in send SMS IOExce");
                // TODO: Exception (e.g. network failure) handling
            }catch (IllegalArgumentException ex)
                System.out.println("Exc in send SMS iLLega");
                //this.listenerObj.showMessage("","Exc in send SMS iLLega");
                // TODO: Exception (e.g. too big or otherwise invalid
                // message) handling
            }catch (SecurityException ex)
                System.out.println("Exc in send SMS Security");
                //this.listenerObj.showMessage("","Exc in send SMS Security");
                // TODO: Exception (e.g. insufficient permissions)
                // handling
            }catch(Exception ex)
            catch (Exception ex)
                //this.showMessage("Exception occured inhandleSend Command");
                 // TODO: Exception handling
         * Sets the destination address and payload text for the text SMS.
        private TextMessage prepareSMS(String receiverNumber)
            // Prepare the text message
            TextMessage message = (TextMessage)connection.newMessage(MessageConnection.TEXT_MESSAGE);
             // Set the destination address
            String number = "sms://"+receiverNumber;
             // Obtain the specified text and set it as the payload
            String smsStr="Test SMS"
            return message;

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    The Capital of INDIA

    Re: Message is not showing in sent Items folder on device-Wireless Messaging API

    AFAI remember that this is the expected behavior and hence happening. Please note that the SMS was sent using the Java ME library and not the the native message service of the device, and hence the SMS sent using the J2ME application should be in updated to the sent message service of the device.
    Thanks with Regards,

    R a j - The K e r n e l

    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. Wireless Messaging API? If no?
    By SilentVOX in forum Mobile Java General
    Replies: 1
    Last Post: 2006-04-11, 06:40
  2. Item command showing in wrong items
    By kakoskin in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2005-04-02, 17:00
  3. Wireless Messaging API
    By arunjadhav_v in forum Mobile Java General
    Replies: 3
    Last Post: 2003-07-24, 01:36
  4. Items not showing in listbox
    By hanhikos in forum Symbian
    Replies: 4
    Last Post: 2003-07-07, 09:47
  5. Wireless Messaging API 1.0
    By Freestyler in forum Mobile Java General
    Replies: 1
    Last Post: 2003-04-04, 15:53

Posting Permissions

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