Support for multiple sms sending?

Hello

can someone tell me where is the LAG of code to send multiple text messages.

I am only able to send a single sms.

private static boolean isCDMA()
    {
        return (RadioInfo.getActiveWAFs() & RadioInfo.WAF_CDMA) == RadioInfo.WAF_CDMA;
    }
    private static final class SmsMessage
    {
        private String _address;
        private String _port;
        private String _msg;
        public SmsMessage(String address, String msg, String port)
        {
            _address = address;
            _port = port;
            _msg = msg;
        }
        public Message toMessage(MessageConnection mc)
        {
            // If the user chose to have messages routed to the inbox (port = 0),
            // we need to specify an address without a port number.
            String addressString = "//" + _address + ( _port.equals(NON_ZERO_PORT_NUMBER) ?  ":" + _port : "" );

            TextMessage m = (TextMessage) mc.newMessage(MessageConnection.TEXT_MESSAGE , addressString);
            m.setPayloadText(_msg);

            return m;
        }
        public Datagram toDatagram(DatagramConnectionBase datagramConnectionBase) throws IOException
        {
            DatagramBase datagram = null;
            byte[] data = _msg.getBytes("ISO-8859-1");
            datagram = (DatagramBase) datagramConnectionBase.newDatagram();
            SmsAddress smsAddress = new SmsAddress("//" + _address);
            SMSPacketHeader smsPacketHeader = smsAddress.getHeader();
            smsPacketHeader.setMessageCoding(SMSPacketHeader.MESSAGE_CODING_ISO8859_1);
            datagram.setAddressBase(smsAddress);
            datagram.write(data, 0, data.length);         

            return datagram;
        }
    }
    public void sendSMS(final String address,final String msg,final String port)
    {
        Thread thread=new Thread()
        {
                public void run()
                {
                    SmsMessage message = new SmsMessage(address, msg, port);
                        try
                        {
                            if(isCDMA())
                            {
                                DatagramConnectionBase dcb = (DatagramConnectionBase)_conn;
                                dcb.send(message.toDatagram(dcb));
                            }
                            else
                            {
                                try
                                {
                                    mc = (MessageConnection)Connector.open("sms://"+address);
                                    if(mc!=null)
                                    {
                                        mc.send(message.toMessage(mc));
                                    }
                                }
                                catch (Exception e) {
                                    // TODO: handle exception
                                }
                                finally
                                {
                                    if(mc!=null)
                                    {
                                        mc.close();
                                    }
                                }

                            }
                        }
                        catch (IOException ioe)
                        {
                            updateStatus(ioe.toString());
                        }
                        }
        };
        synchronized (thread) {
            thread.start();
            try
            {
                Thread.sleep(2000);
            }
            catch (Exception e) {
                // TODO: handle exception
            }
        }
    }

And I'm the appellant at the bottom of the code.

for(int i=0;i

thankx.

My problem has been resolved.

I just put the send method in loop for.

Thankx

Tags: BlackBerry Developers

Similar Questions

  • Download Support for multiple devices?

    I can download a theme for one device.  But when I try to download more files JAD/COD to cover more than peripheral, I always get a message that failed at the end once everything is done.  Can someone please give me the instructions step by step how add support for devices more (for an existing theme).  Please be as complete as possible, thank you

    Thus, for example, you want the theme for the 89xx, 96xx and 9700 5.0 would export you just once for the OS 5.0.. can make a separate export in a different folder for the 4.6/4.7 OS unless I am not quite understand what you're saying

  • NB520 - support for multiple monitors

    NB520 they supported multiple monitors built in, if not, how can I have multiple monitor support my NB520? I need to use a Pewerpoint 2007 (presenter to display mode differs from the public view).

    Thanks a lot for a response in advance.

    Hi smit_Aood,

    The NB520 supports an external monitor and you can use the internal monitor + external at the same time (both monitors are supported). In addition, you can choose if you want to extend the desktop on the secondary monitor or to clone.

    Using the FN + F5 key combination, you can switch between different modes.

    Last but not least, you can use also a video projector or a TV as a second monitor. A certain computer screen is not necessary. ;)

  • Support for multiple versions of an application

    Hello

    If I have an application that has complained about the os 5.0, but uses of the Mineral which are not available on os4.7. Can I change the code base is compatible 4.7. But the app to 4.7 compliance of refactoring removes some of the features of version 5.0. Do I have to release multiple versions of the same application on the app store, for each version of the application is supported by a particular operating system version?

    Thanks for any help

    Details of penetration OS here:

    http://us.BlackBerry.com/developers/choosingtargetos.jsp

  • Support for multiple Active Directory ACS 5.2

    Hello

    I couldn't find a way to add multiple domain controllers to Cisco ACS 5.2, all that he requires in the GUI of the ACS entered the domain name? We are limited to add the root DC /forest?

    I'm not a Microsoft Expert...

    I could not understand how ACS detects the DC through this simple entry? What is with the help of DNS?

    Comments are appreciated.

    Dumlu

    ACS 5 may be joined with a single domain right now. When GBA is joined to a domain, ACS can authenticate any user who belongs to this domain any domain controller in this domain. It relies on DNS resolution to find the appropriate domain controller.

    I think that what you are looking for is Multi domain authentication. If you do this, then you should have a two-way trust between the immediate area (the area which is a part of the ACS) ACS other areas. The ACS will send authentication to one of the domain controllers in its domain and it will then be forwarded to the other domain. It could be a child or a parallel domain, but it must have 2 path of trust between them.

    In other words, so that you may choose is to set up 2 separate domain controllers from different domains such as LDAP servers. In this case we do not need a way 2 trust and you can separately for each domain authentication request.

  • LRT224 Support for multiple subnets

    I'm considering buying a LRT224, but need help with something.

    The network that I have managed has about 200 aircraft currently, with mixed brands and types of switches, access points, etc., scattered. It is a small school that had a lot of different people by running, other not so good, other better. Now, I managed it.

    We would like to add more devices, but currently we are limited to 254 devices. In the manual of LRT224, it - looks - like you can specify manually the subnet mask and the range of DHCP servers. For example, I could change the subnet mask 255.255.252.0 or one 22 subnet, and then specify the range being DHCP, for example 192.168.1.2 alone, through 192.168.4.254, for 1024 addresses total? I want to do this without using VLANs, because I'm not sure if any of the switches support VLAN tagging, and I have no experience with the VLAN.

    Let me know, thanks!

    IPsec VPN site to site, LRT224 tunnels supports greater than 255.255.255.0 subnet masks. However the subnets the side LAN of LRT224 are limited to a class C subnet by VLAN.

  • Support for multiple instances of vSphere vCenter

    I installed the demo of (construction 4.4.0 - EE #1509 - July 28, 2010 - Release Build) Hyperic 4.4 company Web site to test the support of monitoring VMware vSphere 4.0.

    I have installed an agent Win32 on W2003 server which hosts the 4.0U2 of vSphere vCenter server and configured it. Once resources have been configured, I edited the VMware vCenter resource to add a user/password valid and after a short while the ESXi host servers and virtual machines appeared in the vSphere browse/HQ screen. Everything works well.

    I then tried to add a different vCenter server with its own ESXi host servers (with a new agent installed on W2003 this server) and that's where the problem starts. After that I added the name of user and password in the detail of the vCenter inventory, new ESXi and VM guests begin to appear under "recently added". When I go to the screen of vSphere browse/HQ original vCenter disappeared and a mixture of the other vCenter servers host and its own host servers appear under the vCenter newly added.

    I would be able to monitor the 2 different vCenter servers?

    Multiple vcenter instances are supported.  When you configure the resource, be sure to use the IP address of the box instead of the default loop address.  When HQ sees multiple vcenters air-conditioned and come with 127.0.0.1 in the URL of SDK, it blends.  Configuring IP should solve the problem you are experiencing.

  • Support for multiple video cards under ESX

    Hi all

    I was wondering how ESX would handle several video cards I try to virtualize our test network and need to have different virtual machines for separate monitors. I couldn't see any info on ESX and video drivers and I was wondering if, as the core ESX is a put to update the Linux kernel, it would just a matter of installing relevant video drivers to Linux according to a normal Linux installation.

    Thank you

    Martin.

    The vmkernel making virtualization and is, in essence, the operating system of your ESX is code written by vmware - where the origin of a component of the version of ESX - the ocnfusion service which is used to manage and control your ESX - the server console console service is essentially a virtual machine running a modified version of Linux RHEL 3 - now go back to your original question ESX does not supports several video cards , or you can access the Virtual Machines directly from the ESX Server. You must use a workstation running the VI Client - the VI Client is how you access your virtual machine providing access to the running virtual machine. You can access several simultaneousky of virtual machines running from a single workstation.

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • Add support for multiple base in comments

    I have an existing windows 7 x 64 reviews of company I want to add more CPU cores to.  I followed the document of http://kb.vmware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 1010184 and the amount of carrots to 2.  Right now I have a single vcpu, so I expect to see the two graphs in the Task Manager, but I did not.  I have only one.  In addition, Device Manager displays only one processor, and when I run wmic > cpu, I confirm that NumberOfCores is 1.

    I have triple checked to make sure that I spelled cpuid.coresPerSocket is correctly spelled and everything.  No idea why is seems these additional cores will not activate in the guest OS?

    ESX 4.1.0 502767

    Windows 7 SP1 Enterprise x 64

    (also tried on Windows XP Pro SP3)

    Thank you!

    The number of vCPUs that you configure is the total number of cores in the virtual machine.

    Example: If you want to configure a virtual machine with two dual-core processors, set the number of vCPUs to 4 and CoresPerSocket to 2. CoresPerSocket devides only the vCPUs configured to present as multi-core vCPUs guests.

    André

  • OEDQ support for the AV tools

    Hello

    Please someone let me know tools of support for OEDQ AV except Loqate and QAS.

    Thanks in advance.

    Concerning

    Deborah

    External web services call is usually to the Disqualification by using a Script Processor (to where the script used depends on the web service interface). Note that the Script processor is limited to a single output, so normally, if multiple attributes are returned, they are returned in a table attribute, then split later. If you need to do something more advanced than this, you will need to write a new processor in Disqualification - we can tell you this if necessary.

    It is easier to illustrate the approach of Script for example.

    Here is an example of a legend to a code search service postal sample of GeoNames.org. It is a Script processor that takes three inputs (zip code and the country of the attributes of string and a number of maxresults attribute). It returns the results in a table.

    addLibrary ("http");

    Function GetValue (content, name) {}

    var value = "";

    startPos = content.indexOf ("<" +="" name="" +="" "="">") var;

    If (startPos >-1) {}

    endPos var = content.indexOf ("", startPos);

    value = content.substring (startPos + name.length + 2, endPos);

    }

    Returns the value;

    }

    function GetCDATAValue (content, name) {}

    var value = GetValue (content, name);

    If (value.indexOf ("))

    return value.substr (9, value.length - 12);

    on the other

    Returns the value;

    }

    try {}

    var result = new Array();

    var url = "http://api.geonames.org/postalCodeSearch?postalcode=" + input1 [0] + '& country =' + input1 [1] + '& LignesMax =' + input1 [2] + "& username = demo;

    var xmlHttp = new XMLHttpRequest();

    XMLHTTP.open("get",URL,true) ("GET", url, false);

    xmlHttp.send ();

    var response = "' + xmlHttp.responseXML;

    startPos = response.indexOf var (" ");

    while (startPos > -1) {

    var endPos = response.indexOf(" ", startPos);

    var record = response.substring (startPos, endPos);

    var postalcode = GetValue (record, 'postal code');

    var name = GetValue (record, "name");

    var countryCode = GetValue (record, 'postal code');

    var lat = GetValue (record, "lat");

    var lng = GetValue (file, "lng");

    var adminCode1 = GetValue (record, "adminCode1");

    var adminName1 = GetValue (record, "adminName1");

    var adminCode2 = GetValue (record, "adminCode2");

    var adminName2 = GetValue (record, "adminName2");

    var adminCode3 = GetValue (record, "adminCode3");

    var adminName3 = GetValue (record, "adminName3");

    result [result. Length] = zip + "|" +.

    name + "" + |

    Country code + "|" +.

    LAT + ' | ' +.

    LNG + "|" +.

    adminCode1 + "|" +.

    adminName1 + "|" +.

    adminCode2 + "|" +.

    adminName2 + "|" +.

    adminCode3 + "|" +.

    adminName3;

    startPos = response.indexOf var (')", endPos);

    }

    } catch (e) {

    result[result.length] = "Error: " + e.toString();

    }

    output1 = result;

  • Me and my dad is from the same Apple ID and I want to set up his own, but how it will get all his contacts, photos etc from my Apple ID? Or he will lose all? or I could keep them saved for him and send more via an application any?

    Me and my dad is from the same Apple ID and I want to set up his own, but how it will get all his contacts, photos etc from my Apple ID? Or he will lose all? or I could keep them saved for him and send more via an application any? I don't know how to resolve this issue, if someone could point me in the right direction.

    Have him create a id Apple here- create and start using a Apple - Apple Support ID, and then both you can create an album-photo sharing Photo Sharing - Apple Support iCloud

  • I am charged for international SMS, I don't have

    I just bought a new iPhone and noted that I was charged for international SMS, I do not have. When checking with my mobile operator, it seems, he had all the numbers of UK. They claimed that this happens only with iPhones. users of the iPhone to several chat lines confirmed that they had the same problem and said it was related to FaceTime and iMessage. No idea if this is true and advice how to avoid these charges?

    To avoid these fees, use a supported wireless provider. Part of becoming

    a supported wireless provider, it's that the cellular carrier is committed to not charging

    the user of the iPhone for international SMS used to activate FaceTime and/or

    iMessage.

    Go to settings, scroll to the entry for FaceTime and the toggle switch

    display is greener (when it's not green, FaceTime is off).

    Settings-online Messages, the switch for iMessage.

    TL; Dr. If you continue to use FaceTime or iMessage, use a support

    suppliers of wireless or pay for the SMS required for activation.

  • What type of support for labview usb protocols?

    Hello guys I want to connect a device to your pc via a usb port and I want to use labview to analyze the data.

    But first of all, I would like to know what usb protocols support for labview.

    USB, USB CDC and other TMC?

    I ve read labview recognizes a raw device to the usb, but what is? Is it VI to read and send data, or I have to do? If these VI exists, they do the handshake? flow control?

    Thank you.

    Please read the chips and have a look at the USB specification (it is linked to in the nuggets).

    TMC, CDC, MAss Storage are all built on the basic USB protocols.

    LabVIEW has no built-in support for one of these classes of devices except Test and measurement.

    Shane

  • Is it possible to set up for multiple users on the same computer to avoid entering the e-mail and the password

    Original title: Multi users

    Is it possible to set up for multiple users on the same computer to avoid entering the email and password every time that a new user want to check emails?

    Hello

    Welcome to the community forums of Microsoft and thanks for posting the question. According to the description, you need help in the creation of multiple user accounts. I've surely you will help find a solution on the issue.

    What is the operating system installed on the computer?

    User accounts, several people can easily share a single computer. Each person can have a separate user account with unique settings and preferences, such as a screen saver or desktop background. User accounts control files and programs users can access and what types of changes users can make to the computer. As a general rule, you'll want to create standard accounts for most computer users.

    If you use Windows Vista or Windows 7, see the article below:

    Create a user account

    http://Windows.Microsoft.com/en-in/Windows7/create-a-user-account

    http://Windows.Microsoft.com/en-in/Windows-Vista/create-a-user-account

    For Windows XP users:

    How to create and configure user accounts in Windows XP

    http://support.Microsoft.com/kb/279783?WA=wsignin1.0

    Hope this information helps. Answer please if you have more queries about Windows.

  • no support for dv6768se

    No update for the dv6000 BIOS

    Careful, HP has turned to deception. I bought thousands of dollars worth of HP products. I recommend the purchase of HP in my official duties as a Director of engineering. However, I was disappointed by the performance and support in all cases. I have two machines where I couldn't write media to recover. The most recent is with my Pavilion dv6000 laptop. It has the problem of restarting which may be related to problems of overheating GPU NVidia. This is known issue and HP must have decided to let go without worrying about the goodwill of its customers.

    The details for the latest incident are:

    Seeking support, I called a number found on the site of HP. I was charged for the support of a partner HP from a foreign land only to make things worse.

    They say that when I called HP they Mobile is unsupported and is obsolete. So, why is me she charged?

    My flag will not re-start. The symptoms started he did a software update from Microsoft. The update restarted my system and suspension system. After a stop forced (pressing the power button for 5 seconds), I had a soft recovery screen. I did a restore and it restarted. It hung again. This time, the indicated recovery screen I couldn't move forward and to contact support.

    I tried to get it back to the factory setting. This has seemed to work until I did the updates and tried to restart the machine. It hung again. I made the diagnosis of HW, but diagnostic tests indicated no problems. Analysis of disk of Vista also no problem.

    Before I looked for support I found that instead of restart, if I made a stop, I could limp thought enough of the upgrade to Windows 7. However, the question remained, and she seemed to be associated with HW. That's when I called HP support.

    First of all, I told them (ITechLine) was associated with HW and I didn't not need remotely diagnose my machine. They insisted so I spent a day watching a tech do the antivirus scans and scan disk. Later, they said they had solved the problem, but the technology that has been doing Diagnostics admitted that the original question seems HW and remains.

    How I got the number of ITechLine from the HP website. May have been my mistake, and a better number could be found on the HP website. The loss of time can be, I think, a concealment deliberate by HP.

    Later, I called enough people at HP (even in a foreign country) to find the HP had decided to abandon the support for my laptop and I couldn't support or portions of their share for this machine. The person said that the technology was obsolete. It is also darkening; Since a SATA drive for this my machine could be found for less than $50 and would have more than twice the capacity. In fact, I could buy a new memory 2 GB SODIMM, a new hard drive and a new battery for less than $90. Phone support charged $149.

    I have a few web searches to find the GPU NVidia overheating problem was probably the cause. Then, I disassembled the laptop to clean the cooling fan. The reboot problem was considerably reduced. I can restart 5 out of 6 times, which leads me to believe that it is the GPU overheating problem.

    However, now I can't use the optical drive to start the Windows 7 support. It does not show in my computer. Also, I can't write recovery media using the internal optical drive. I knew it is the bios, because one of the stages that I found on the web had to reset the cmos to the original. I see that is not the most recent. By going to the HP site for the update of the bios, I find that they no longer have the update and my machine does not get detected by their auto detect process. Forgot it that they did the laptop.

    So, I have a laptop of brilliant almost new look that will not work and is unsupported. It is obsolete, even if the State of the industry has not really progressed for laptops. It is Wi - Fi enabled with a large screen and could run all the latest SW until 5 days ago. It is too light to be a doorstop good, so it is useless. All I can get from HP is denial, disappointment and a dress (with a foreign accent).

    Being an EE, I thought that HP a tester has been great and that HP would be able and honorable. It's the end of an era.

    Someone know where I can get the free bios update? It's not worth spending a lot of money after bad to pay for a service update of the bios.

    It is a forum for users of peer-to-peer support for HP products. HP maintains no official presence in this forum. It is unlikely that HP will respond in an official capacity. Response of an employee of HP represents his own opinion and not that of HP.

    Here are the specifications of your HP Pavilion Entertainment Notebook computer dv6768se. Based on the information contained in the specification, this model is about 5 to 6 years. Years of the computer, this laptop is very certainly obsolete. You can find the update of BIOS, drivers and software for your computer on the HP support site at HP Pavilion dv6768se drivers and downloads. The most recent BIOS listed is;

    Description;
    This package provides an update the system BIOS. The update is installed on models of laptops using a supported Microsoft Windows Operating System. A reboot is required to complete the installation.

    Communicate the details;
    Exit the: 2011-03-30
    File name: sp52477.exe [1/1, 3.09 M]
    Version: F.34
    Compatibility: (MUST BE INSTALLED UNDER)
    Microsoft Windows Vista
    Microsoft Windows Vista (64-bit)

    Fix/enhancement;
    -Fixes a problem where the system stops unexpectedly in response and a warning window 0 x 124 appears when the laptop was turned off abnormally, then restarted.

    Please send Bravo

Maybe you are looking for

  • PROTECTION OF FILES WINDOWS WITH THE SFC / SCANNOW

    What I received for the initial mistake of the window File Protection: uninstalled also 2 programs McAfee that had been installed earlier. I did exactly what was suggested. I ran sfc / scannow using RUN with my running w SP2 cd, but as scannow was ru

  • OfficeJet Pro 6830 slow printing

    My officejet pro 6830 takes more than 1.5 minutes to print the first page to initiate a print job. Meanwhile, I hear the setting of the print head. This seems to be a very long time. Is this normal?

  • BlackBerry curve Smartphones factory reset 8320

    Please can anyone remember how, at the factory reset prompt cmd user on PC John

  • BlackBerry Smartphones Outlook 2007 calendar will not sync with BB 8350i

    Hello, I really need help.  I tried everything I can think of to solve the problem.  I have the 8350i Nextel, just recently it stopped syncing with my outlook calendar.  Everything in outlook sync very well.  I went into my BB desktop to sync setting

  • Performing updates to Windows to 8024, 000 error

    I get error 8024a 00 I tried everything I could find.  It has been a few months trying to solve this problem.  How can I fix this error? No one seems to be able to help, and Microsoft says just to check with the Microsoft Community.  Help, please! Or