Not able to send an sms message progrmarically...

I am writing an application that sends a text message to someone... the application successfully, the SMS (no exception is thrown) and it works perfectly in the Simulator, but when the app running on my everything and he do send a txt message to a storm the strom (the phone which supposed to receive the response) never gets the message text... heres the code

// NOTE THE NUMBER IS IN THE FORM "sms://xxxxxxxxxxx"public MessageSenderThread(String number, String message)
    {
        this.number=number;
        this.message=message;
    }
    public void run() {
        MessageConnection mc=null;
        try {
            System.out.println("Sending info to :"+this.number);
            mc = (MessageConnection)Connector.open(this.number);
        } catch (IOException e) {
            System.out.println("Error openeing sms sender");
            return;
        }

        Message message = mc.newMessage(MessageConnection.TEXT_MESSAGE, this.number);

        TextMessage textm = (TextMessage)message;

        textm.setAddress(this.number);
        textm.setPayloadText(this.message);
        try {
            mc.send(textm);
        } catch (InterruptedIOException e) {
            System.out.println("Error sending message");
            return;
        } catch (IOException e) {
            System.out.println("Error sending message");
            return;
        }
        try {
            mc.close();
        } catch (IOException e) {
            System.out.println("Error closing sms");
        }

    }

Check out these articles.  Note that the Tour is CDMA.

Different ways to send SMS messages
http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_is...

Known issues - impossible to send SMS messages using BlackBerry smartphones that work on CDMA Networks
http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/Known_I...

Tags: BlackBerry Developers

Similar Questions

  • I'm not able to send outgoing SMS promptly

    Hello

    It will say its updated, but you can still repair the phone/software, in case that the problem is the phone not the software on your computer after using the PCC or SEUS you can click on repair or install anyway, but even once, it will delete everything that is stored on the phone (not the SD card)

  • BlackBerry smartphones not able to send SMS

    Hi all

    I am not able to send SMS from my smart phone BlackBerry for the last day. I checked all the possible things, including my network, the settings of message, etc. I am able to choose contacts and messages of type, but when I try to send it it gets hanged, the track pad doesnot send it... even if I try to click on the Green tab for options to choose from, it doesnot wrk... so I have to press back, once I press back I see the typed message highlighted in green in my message box and if I click on it it goes away. The Envoy of sending doesnot show the message also when I check with the recipient to inform that the message is not delivered. Could someone advice why this can happen? also is it due to a virus? If so can the analysis and restore back up my curve with difault settings... reuqest you please please reply back soonnnnnnnnnnnnnn... My curve model is 8520, VODAFONE and OS v5.0 carrier...

    Thank you

    Steeven

    Perform a simple reboot on the BlackBerry this way: with smart BlackBerry poweredphone, remove the battery for a minute and then reinsert the battery to restart. A reboot in this manner is prescribed for most defects and errors of operating system, and you will lose any data on the device doing so.

    Now after restarting and baseline activity calmed down, try again your SMS.

    And no, there is no virus on your BlackBerry or any BlackBerry. Has never been yet, you're not the first.

  • I can receive email with outlook express, but am not able to send e-mail

    I can receive e-mail using Outlook Express but am not able to send. My email is a live.com... Here's an error message that I keep getting...

    . The message could not be sent because the server rejected the sender's e-mail address. E-mail address of the sender was * address email is removed from the privacy *'. Subject 'Looking for my first home', account: 'pop3.live.com', server: 'smtp.live.com', Protocol: SMTP, server response: ' 550 5.7.3 abandoned required action; user not authenticated ', Port: 25, secure (SSL): no, Server error: 550, error number: 0x800CCC78.

    Here's another... Your server suddenly put an end to the connection. The possible causes for this include server problems, network problems, or a long period of inactivity. Account: 'pop3.live.com', server: 'smtp.live.com', Protocol: SMTP, Port: 25, secure (SSL): no, error number: 0x800CCC0F. Can you walk me through how to fix this? Thank you

    Hello

    Have you made changes on the computer before this problem?
     
    I suggest you to try the steps in the following Microsoft article and check if this may help.
    OLEXP: you are prompted repeatedly for credentials when you connect your e-mail server:
    OLEXP: "The Message could not be sent" Error Message When send you Mail by server IMAP of CompuServe: http://support.microsoft.com/kb/310876
     
    Hope the information is useful.
  • I use iMessage to the text of my Macbook. For some reason, it will not let me send a text message to a particular group (everyone has iMessage/iPhones) to my computer, but works well on my iPhone. All messages always appear on my Macbook iMessa

    I use iMessage to the text of my Macbook. For some reason, it will not let me send a text message to a particular group (everyone has iMessage/iPhones) to my computer, but works well on my iPhone. All messages always appear on my Macbook iMessage, but when I click in the conversation, no text box for me to write as he does with everyone. It's driving me crazy. How should I do? The two contacts are in my address book and identified on my computer but I can't their message from my computer and have to keep spending on my phone to text their return. Their new messages are always also highlighted on my computer. In the photo I've included, you can see there is no text box for the text of the group with "Franny, dad."

    Thanks for any help!

    What happens if you start a new conversation with Franny & Dad from the IOW computer do not try to "catch" the conversation

    Click on new message and put their names in there

    If this does not work - remove the wire from the Mac and try again

  • If I click on an email link in a web page instead of an empty message is opened I still get noise toward the top of the screen with a log-in for googlemail. I don't have and won't have a googlemail account. I just want to be able to send e-mail messages b

    If I click on an email link in a web page instead of an empty message is opened I still get noise toward the top of the screen with a log-in for googlemail. I don't have and won't have a googlemail account. I just want to be able to send e-mail messages by using Outlook.

    See this article.

    http://support.Mozilla.com/en-us/KB/changing+the+e-mail+program+used+by+Firefox

  • BlackBerry Z3 not able to send or receive e-mails in the HUB

    I am not able to send or receive email notifications facebook hub hub are fine sometimes the problem persists with whatsapp too but surfing the internet through browser is very good. I tried to remove the account setting email and add it back but he says right now, that your email account can not be added please try again later.

    I use the data via a Wifi and not tried mobile data hollow

    Hello

    Rare

    mmm

    Try a different network WiFi

    Concerning

  • Bluetooth connectivity - although get all paired devices, but not able to send and receive any file.

    I always found the problem when connecting Bluetooth devices. Although that devices paired but not able to send and receive any file.

    Please guide.

    Hello

    Don't forget to check with your system/motherboard manufacturer Support as long as that
    the real peripheral manufacturer. Updated the BIOS and drivers from the chipset (both can affect the)
    BT) and BT drivers to their online resources.

    Read these:

    Why isn't Windows find my Bluetooth or other wireless devices
    http://Windows.Microsoft.com/en-AU/Windows-8/why-isn ' t-windows-conclusion-device
    Device advice
    http://www.Bluetooth.com/pages/device-advice.aspx

    Microsoft - hardware and drivers
    http://Windows.Microsoft.com/en-us/Windows/hardware-drivers-help#hardware-drivers-help=Windows-8

    Why Windows is not find my device?
    http://Windows.Microsoft.com/en-us/Windows-8/why-isn ' t-windows-conclusion-device

    What happens if a device is not installed correctly
    http://Windows.Microsoft.com/en-us/Windows-8/what-device-isn ' t-installed-correctly

    BluetoothView is a small utility that runs in the background and monitor the activity of
    Bluetooth devices around you. For each detected Bluetooth device, it displays the following
    information: device name, address, Major Device Type Bluetooth Type device minor, first
    Detection time, last detection time and more. BluetoothView can also inform you when a
    new Bluetooth device is detected, by displaying a balloon in your bar tasks or playing a
    a quiet sound signal. -FREE
    http://www.NirSoft.NET/utils/bluetooth_viewer.html

    BluetoothCL is a small console application that transforms all current detected bluetooth devices
    to the standard output. For each Bluetooth device, the following information is displayed:
    Address MAC, Minor Device Type, Device Type Major and possibly society
    name of the device (if the external file of MAC addresses - oui.txt is provided) - FREE
    http://www.NirSoft.NET/utils/bluetoothcl.html

    BluetoothLogView is a small utility that monitors the activity of Bluetooth devices
    you and displays a log of the devices in the main window. Whenever a new
    Peripheral Bluetooth comes in your area and when the appliance leaves your area, a new line of log
    is added the following information: device name, device address, time of the event, event
    Type ("Device arrival" or "Equipment Left"), Type of aircraft and the company that created the device.
    BluetoothLogView also allows you to specify a description for each device (according to her)
    MAC address) that appears in the column "Description". -FREE
    http://www.NirSoft.NET/utils/bluetooth_log_view.html

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Messages received that he had problems with Windows Live. I am not able to send emails in Hotmail.

    original title: hotmail

    Today we had the messages he had problems for windows live. We are not able to pass anything on hotmail and computer he is slow

    Hello

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums at www.windowslivehelp.com.

  • I'm not able to send any email from Windows Live Mail

    I looked at more than a hundred topics regarding this situation and none to help me on this problem. I have 3 email accounts that I use with Windows Mail and none is able to send e-mails. I looked and looked and looked at my settings and everything is correct.

    Help, please!
    The connection to the server has failed.
    Topic "why used send u.
    Server: 'smtp.q.com '.
    Windows Live Mail error ID: 0x800CCC0E
    Protocol: SMTP
    Port: 587
    Secure (SSL): No.
    Socket error: 10060
    The connection to the server has failed.
    Topic "why used send u.
    Server: 'smtp.gmail.com. '
    Windows Live Mail error ID: 0x800CCC0E
    Protocol: SMTP
    Port: 587
    Secure (SSL): Yes
    Socket error: 10060

    Well, it's Windows Mail or Windows Live Mail?

    I immediately see the bat that your Gmail settings are not correct.

    Activation of POP in your Gmail account
    http://mail.Google.com/support/bin/answer.py?answer=13273

    How to configure gmail in Windows Mail & Windows Live Mail
    http://mail.Google.com/support/bin/answer.py?answer=86383

    Check your search parameters.
    http://myqwest.com/files/Qwest/support/other_email_apps/windows_mail.php

    Analysis of e-mail may be at fault here too. Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
    http://www.oehelp.com/OETips.aspx#3

    Why you don't need your anti-virus to scan your email
    http://thundercloud.NET/infoave/tutorials/email-scanning/index.htm

    Note that for many AV programs, it may be necessary to uninstall the program and reinstall in custom Mode and uncheck e-mail scanning when the option is available.

  • BlackBerry Smartphones cannot SEND the SMS messages on 8130

    Here is my story:

    1. I've upgraded to a Blackberry Pearl 8130 pink in the beginning of the year.   My carrier is Verizon.

    2. recently (a month ago) a friend sent a text message to me of his new phone.  I tried to text back, but received a big big red X indicating that my message isn't getting through.  Specifically, when I opened my message, the error says, "State of the Mobile equipment has failed."

    3. I went to Verizon.  They did something where I think that they took me off the network and then get back on.  There is nothing.  She wanted to make a hard game on the phone, but I had not backed up my data again.

    4. I went home and my data backed up and returned to Verizone about a week later.  I spend more than an hour in the store.  The gentleman who helped me was on the phone with someone (no doubt technical support) nothing works.  He was ready to order me a phone replacement, but after further discussions with technical support, they thought there was a problem with the network, not my phone.  I went home with a case number.

    5. the next day same Verizon called.  They said it wasn't a network problem and it was my phone.  They would send me a replacement.

    6. I received my replacement phone a few days later.  I was anxious to get it set up, but the results were the same.  I have not yet returned to Verizon.  I thought I'd try everything here first see if anyone had any ideas.

    The bottom line:

    I CAN send/receive emails.

    CAN I send an MMS message.

    I CAN receive text Messages.

    I can't send SMS messages.

    Thanks for any advice you may have.

    -Sandra

    Tami,

    Thanks for the reply.  I happy to point out, however, that the problem has been resolved by Verizon!  It has never been my phone, that's why the replacement was a mute point.  Anyway, here is their answer (in case someone else has this problem):

    Sandra, we reviewed your account and coding in any of our servers.  We believe that we have found the problem and fixed it.  We ask that you update your PRL (preferred roaming list) by calling the * 228, option 2.  Once completed please test your ability to send text messages.

    I'm just glad that the problem has been resolved because my frustration was very high.

    Happy texting!

    -Sandra

  • simple able to receive e-mails, & replay most of the e-mails, but not able to send emails. Don't respond to simple forward, clear instructions, no technique mutilated * answers please.

    simple emails sent not able to do.

    simple emails sent not able to do.

    1. Who is your provider of mail service?
    2. What email client are you using (program/application you start to send and receive e-mail)?
    3. How to configure the mail client (where you got the instructions how to set it up)?
    4. You get errors when you try to SEND a new e-mail message (since you say that you can respond to most emails) and if so - what are they (verbatim)?
  • I can not receive or send e-mail messages I get an error message

    I can not receive or send email I get an error that says:-the connection to the server has failed. Account: 'mail.roadrunner.com', server: 'mail.roadrunner.com', Protocol: POP3, Port: 995, secure (SSL): Yes, Socket error: 10060, error number: 0x800CCC0E

    All of a sudden it stopped working. I have no problem with the internet service and no changes on the computer.

    Roadrunner email works fine if I go to their website.

    Roadrunner email works fine if I go to their website.


    This does not mean that their servers are working. I would check with them.
     
    Another thing to try is to disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
    http://www.oehelp.com/OETips.aspx#3 
     
    Why you don't need your anti-virus to scan your email
    http://thundercloud.NET/infoave/tutorials/email-scanning/index.htm
     
    Note that for many AV programs, it may be necessary to uninstall the program and reinstall in custom Mode and uncheck e-mail scanning when the option is available.
  • Copy and paste - can not copy parts of an SMS message

    I'm really frustrated with the part of the copy of and paste in a text Message. In the SMS.

    If I press any number or a word = nothing happens (if nothing is underlined),

    If I press a number stressed = I have the option phone or Skype?

    If I double click = nothing happens.

    If I do a long press I have the options to:

    1. COPY THE TEXT OF THE MESSAGE
    2. FORWARD THE MESSAGE
    3. COPY OF SIM CARD MESSAGE
    4. DELETE THE MESSAGE
    5. SEE MESSAGE QUEUES
    6. ADD STAR

    If I want to copy some text (e.g. address, phone, nothing else) but not the SMS all I don't find a way to do it.

    Anyone else having this problem with SMS messages? Sometimes you need to extract the info from the SMS to stick in a box on a Web site, for example, or add to contacts etc.

    Can anyone help?

    Hello and welcome to the community! Since you are new, please make sure that you have checked our Forum.

    Unfortunately, it is not possible to copy parts of a text message in the messaging preinstalled application. But if you press a number, you can open it with the phone application and copy number of the Dialer. And if you want to copy a URL, you can open the page and copy it from the URL field.

    If you want parts of a text message, my best advice would be to copy the text in a Notepad or similar and then change the text. For example, you can copy it with the text you want to include.

  • BlackBerry Q10 Q10 does not recognize the sender of sms

    I have a big problem.

    My Q10 is recognize my contact when I am called, but does not recognize the sender of the text message when I get one.

    Let me explain.

    I'm from Romania. The prefix for my country + 40 TR.

    Our mobile numbers starting with 07XX.XXX.XXX

    When you call from another country you put only + 40 then the number of laptop without the 0 (+ 407XX.XXX.XXX)

    In our country are 4 mobile operators (Vodafone, Orange, Cosmote and Digi).

    There is a situation when if you are called to another network, the number makes an appearance with the prefix of the country as + 407XX.XXX.XXX and my Q10 recognizes not the same if the appellant, it is in my contact list.

    Today, I noticed another BIG PROBLEM.

    So, I have in my contacts... John Smith with 0722.123.456.

    When I am called by him, it apears John Smith, but when I recive text message from him, it apears + 40722.123.456.

    My stupid Q10 does not recognize the contact!

    If I change the number on my agenda and I put + 40722.123.456 to John Smith, he acknowledged the sender of text, but it does not recognize the appellant (when I get a call from John Smith), it apears 0722.123.456.

    I used a lot of o phones: Nokia (many models), Iphone, Siemens, Samsung, etc, since 1996.

    I NEVER HAD THIS PROBLEM UNTIL TODAY!

    EVEN WITH THE OLD MODELS AND STUPID OF NOKIA!

    I CAN'T BELIEVE THAT THE NEWEST SMARTPHONE ON THE MARKET HAS THIS BUG!

    I HOPE THAT SOMEONE WILL ANSWER ME SOON AND GIVE ME A SOLUTION!

    P.S. the next week, I'll go on a hollyday in another country. What happens when I receive the call of my country and all my calls will be with prefix + 40?

    Probably, he recognizes no contact!

    You have this problem or if only my phone?

    The work-around, I have read other users is to include the number of the contact in two formats...

    Thus, John Smith would have one number registered with 40 +, and other registered without the + 40.

    BlackBerry is aware of the issue and I hope to work on it.

Maybe you are looking for