How to send SMS to an individual or a list of numbers?

Hello

I want to send SMS to a particular number or group of numbers. As I had somehow in this link below: Send SMS text Messages

I tried with it. But after sending the sms, it is not getting on the particular number. Means, that it is not delivering. I wrote the below codes:

          if (field == mCbSaveContact)
        {
                   sendSms();
                }

 private void sendSms() {
    // TODO Auto-generated method stub

         UiApplication.getUiApplication().invokeLater(new Runnable()
            {

                public void run() {

                    DatagramConnection dgConn;
                    try {
                        dgConn = (DatagramConnection)Connector.open("sms://9014409192");
                        byte[] data = "Test Message".getBytes();
                        Logger.out("AddContact","data value");
                        Datagram dg = dgConn.newDatagram(dgConn.getMaximumLength());
                        dg.setData(data, 0, data.length);
                        Logger.out("AddContact","after setting the data");
                        dgConn.send(dg);
                        Logger.out("AddContact","Sending SMS success !!!");
                    } catch (IOException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                    }
                        }
               });

Help, please...

invokelater isn't a thread and everything that the blocks should be on a separate thread.
http://supportforums.BlackBerry.com/T5/Java-development/what-is-the-event-thread/Ta-p/446865

Tags: BlackBerry Developers

Similar Questions

  • How to send SMS from a web application to for free?

    In my view, what API JavaMail will help send emails and SMS Messages via the SMTP server. I want to know how it actually works and how to configure the SMTP server? How to send SMS from java program? Is there any material available on the web? Please give some input.
    Thanks in advance.

    user12873853 wrote:
    In my view, what API JavaMail will help send emails and SMS Messages via the SMTP server.

    Looks like more false hope that belief for me. The only way that works is if you have a SMS gateway which allows communication via SMTP. No doubt some exist (search for 'JavaMail sms' through google seems to indicate), but if you have to ask you don't have.

    And who exactly where you are stuck: to send SMS messages, you need an SMS gateway. It will be the first thing that you have store because, so far, there is no reason to think in code, protocols or implementations. It can be as simple as plugging a mobile phone, but then you can send messages in mass of course. Most likely, you will need to shop for a partner who has a SMS service you can use blasting.

  • How to send SMS to users of iOS iOS 9.2.1 instead of iMessage

    How can I send a text to the user to iOS instead of iMessage. I disabled iMessage in settings but when I tried to send it, it says that I need to use iMessage. I have unlimited SMS so I don't mind not just using regular texts. I did not so much unlimited data and I don't always have wifi to send TEXT messages instead of iMessage are more convenient for me. I've also updated to iOS 9.2.1 and I have 6 s

    iMessage is of Apple ID Apple ID. If you send it by SMS, you need to send it to a phone number, not their email address. Make sure you have their telephone number provided for them in the Contacts application. And both phones have the intention to send SMS.

  • How to send SMS?

    I have the BB Pearl 8120 & I made a simple application that takes input from the user.

    Now, I want to send this entry to the server (i. e. In this case server is my PC), how can I proceed?

    I want to send SMS from my mobile via internet on my PC, how do I do this?

    Please help me...

    Thank you

    Hi friend

    Your pc should be smsc server so that you can be able to send sms to your pc (server) via mobile.

    Thank you

    SK

  • How to send sms via programmetically

    Hi friends,

    Here, I want to open the Textmessage field deal in that I want to put a default text and the user can choose the numbers he wants to send how to do this using bb api.

    Please help me friends.

    Thank you

    Check this box

    - http://docs.blackberry.com/en/developers/deliverables/11935/Create_new_populated_text_msg_565424_11...

  • How to send SMS from iPhone to MacBook?

    I got my iPhone 5 for about 2 years now and want to upgrade, but if I do that, I'll lose all my text messages/iMessages. So I was wondering how I can download them from my iPhone to my MacBook Pro, so I can keep them?

    (MacBook Pro 13 "mid 2012, OS X El Capitan 10.11.4 and iPhone 5 is iOS 9.3.1)

    Hello tm1594,

    Thank you for using communities of Apple Support.

    I see that you are looking to upgrade your iPhone and worry of losing your messages in the process. As a long time that you back up your iPhone 5 before changing phones and then restore this backup, you should be fine. That's what I've had since I got the first iPhone and am on the iPhone 6 + and had no problem losing anything.

    This link provides information about backing up your iPhone, on the cloud or a computer and then restore from a backup and moving data to a new iPhone.

    iPhone Support - backup your iPhone

    Best regards and enjoy your new iPhone.

  • How to send an email to my entire contact list in windows mail?

    How to transfer a message to everyone in my contacts list?

    How to transfer a message to everyone in my contacts list?

    Click the To button to the left of the field to reveal all your contacts. Click on one to highlight and Ctrl + A will highlight all. Add the to the field.

    You can also hold down the Ctrl key and click on selected addresses, or delete them.

    Note that your ISP probably has a recipient limit how much you can sent at the same time.

  • BlackBerry Z30 sending sms to a missed call unknown. Z30

    Can someone tell me how to send sms to a missed call unknown.

    (I don't want to add the number to my contacts)

    New on Z30, previously bold 9900 user. Luxury was a little easy with the touch of menu physical autour...

    Thank you..

    Patrick

    Go to the section of the appeals
    Contain the number of missed calls
    Press the 3rd icon which is to send him a text message.

  • HP Laser Jet MFP M127fn Pro: How to send a fax using speed dial?

    I have a new HP Laser Jet MFP M127fn Pro: how to send a fax using speed dial, I entered already numbers in the address book.

    I'm embarrassed to say that I spent several hours trying to get the speed dial to work on a M127fn.  It turns out that there really no speed dial.  That's the conclusion of at least a HP tech that actually used the machine.  Another tech was able to describe a way to fax a phonebook entry, but it is quite too complicated to be called a speed dial.

    [1] press the button settings (key).

    [2] press the right arrow to access the phone book.

    [3] press OK button.

    [4] use the right or left buttons to reach the desired phone book entry.

    [5] press the OK button to reveal the label for the entry, or "empty" if it is not set.

    [6] press the OK button if the element is set to display the fax or dialing options.

    [7] press FAX to initiate a fax to this phone book entry.

    My users find it much easier to have their phone numbers pasted on the machine where they can connect looking them to instead scroll through menus, for the right option.

    It seems that there is some sort of disconnect between hardware, firmware, and technical writers on this machine, because this ancient feature has been neglected, and the user guide is left to sputter on the issue.

  • Companies in the country of residence, said Apple devices can send sms from one country to another unless the owner knows. If it's true there at - it an explanation why and how to stop this shit.

    Recently, in Albania, I have an mobile number, and normally they have offers and their packages on calls and sms. the sticky thing is they also have the option to go short of the amount you paid. But that's only if you activate and I know that you can go out, even if it's a prepaid number, strange o my eyes and strange i just that apple can send sms to the United Kingdom without I know and this power use iPhone like at the beginning, but never seen anything like this.  Mainly I mind because of confidence in the company and the product, not because it s a small amount of monye, but because I have no idea and I'm checking all my sms with this strange issue that i don't know who he is.

    How ever I'd like to know can´t it possible to a iPhone can send sms without I know number that I have no idea as I have registered it in my cell phone. So what to do, before I report it to the authority and the Police because it seems like a fraud. And I don't want to pay for something I've ever used.

    If your device sends an SMS to the United Kingdom, it seems that you are referring to the SMS activation for iMessage and FaceTime. It is a text Message hidden so check with the Apple server to the United Kingdom. If you are using media supported for the iPhone, they normally do not charge for these SMS, so I think that you are not using a supported carrier. If you have tried to enable iMessage and/or FaceTime, which is the cause. You should contact your operator to find out if they support iMessage and FaceTime. If this isn't the case, then you can not use these features.

  • How can I send sms text message from my Windows 7Pro PC to any mobile phone?

    SMS from the mobile phone PCto

    How can I send sms text message from my Windows 7Pro PC to any mobile phone

    By electronic mail.  Exact address depends on the carrier.

  • txt on the new iPad 2 Air messages only works with other Apple users.   How to send and receive SMS users iMessages?

    I can only use iMessage on my new iPad Air 2 with other Apple users.    Why can't send and receive text messages with SMS people?

    You need an iPhone and then use continuity iOS features to do - continuity use to connect your iPhone, iPod touch and Mac - Apple Support

    An iPad is natively unable to send SMS text messages such as those that require a connection of cellular voice channel.

  • Cannot send SMS

    I have a Apple Watch watch OS 2.2.2 (13V604) running and one 5 iPhone with iOS 9.3.5 (G 13, 36). Previously, I found that the watch would not send SMS free hands unless I turned on iMessage; These messages would simply disappear, but things seemed to work for a few weeks after iMessage has been activated.

    Now, I find that the following will happen if I try to send messages to someone who doesn't use iMessage (e.g., Android users):

    'Hey Siri, send a message to $PERSON saying $MESSAGE'-> in a few seconds, a notification indicating that the message is not sent. The message does not appear in the mail app on the iPhone, but I know that many have unsent messages in the message shows application (it seems impossible to return or reject these). If I select a message manually via the mail app on the watch (whether by you answer or make a new) then it is sent correctly.

    Unfortunately, the sending of text messages hands-free for Android users is very high on the list of the essential requirements for the use of this watch. Can anyone suggest how to deal with this? NB. I already turned iMessage market again and power cycled shows and the iPhone.

    Hello

    It can help to switch send as SMS works again:

    -On your iPhone, in settings > Messages > Send as SMS.

  • How to send an audio message, but not with imessage?

    How to send an audio message, but not with imessage?

    Find another app/service that will allow you to do. Or record a voice memo using the voice recorder application and attach to an SMS.

  • My Iphone / imessage / facetime continues to send sms without authorization

    Hello

    I use the Apple as the Iphone products for centuries. Eversince I have spend provider to another (which has no contract with apple), my custody Iphone sms sending abroad without knowing me, until I receive my Bill.

    All messages are a number in the United Kingdom. I tried to find out which application is causing the problem. To read other users ' questions, I guess that's iMessage.

    I use my phone for sms not talkative iMessage. All the app are disabled, iMessage and FaceTime. How do these apps still send sms? I never authorized iMessage or any application to send sms. Apple why phone texting without knowing me?

    How can I block apps to send sms? If anyone knows how, please let me know. It is ridiculous that I have to pay for something I don't use. If apple likes to make apps that sends messages, apple should foot the Bill for the users.

    If this issue cannot be resolved, then I need to consider using android.

    See you soon,.

    A very frustrated iphone user

    frustrateduser_1_2_many wrote:

    Hello

    I use the Apple as the Iphone products for centuries. Eversince I have spend provider to another (which has no contract with apple), my custody Iphone sms sending abroad without knowing me, until I receive my Bill.

    All messages are a number in the United Kingdom. I tried to find out which application is causing the problem. To read other users ' questions, I guess that's iMessage.

    I use my phone for sms not talkative iMessage. All the app are disabled, iMessage and FaceTime. How do these apps still send sms? I never authorized iMessage or any application to send sms. Apple why phone texting without knowing me?

    How can I block apps to send sms? If anyone knows how, please let me know. It is ridiculous that I have to pay for something I don't use. If apple likes to make apps that sends messages, apple should foot the Bill for the users.

    If this issue cannot be resolved, then I need to consider using android.

    See you soon,.

    A very frustrated iphone user

    First, there is no Apple in this technical forum from user to user.

    Second we user do not care if you go to an Android phone, you are more than welcome.

    If you get an error when you try to activate FaceTime - Apple Support or iMessage

    You use a carrier not supported iphone as you said in your post, this is why he sends sms to the number to the United Kingdom.

    Take your problem with your phone operator.

Maybe you are looking for

  • binary file with line break

    Hello Today, I need to import data from a binary file / mixed text. The structure is CH1 octet1 Ch1 Ch2 Ch2 octet2 CrLf octet1 octet2 CH1 octet1 Ch1 Ch2 Ch2 octet2 CrLf octet1 octet2 CH1 octet1 Ch1 Ch2 Ch2 octet2 CrLf octet1 octet2 My first attempt w

  • Know the password of HDD, want to change

    Aspire AO756. I put a HDD password in the Bios. It works very well. Now I want to change it, but in the Bios, the hard drive password option is grayed out and has the word 'frozen' next to it. So, how can I change the password if I know that the curr

  • misprints CM2320 mfp

    I find that my printer is not printing properly... 1. the images at the top of the page are upside down; Words are correct 2 jpeg images on forms do not print correctly I uninstalled and reinstalled the printer drivers. Any other suggestions?

  • I just got the old superpowers2 the computer game and he wants to play on vista!

    I put it but it says that it can't not play compattable

  • How to get the version of Spider Solitaire XP?

    I used to sit around and play Spider Solitaire on my XP machine.  Well I got a new computer Windows 7 and the new version of Spider Solitaire sucks - say no more.  Is it possible to go back to the old version of XP that was fun to play? * original ti