SMS: Datagram vs MessageConnection method - why use MessageConnection?

Hi all -

Please apologize in advance, this is another blow of mouth, or I am misinformed.

So, there are two ways to send and receive SMS - the 'MessageConnection' method and the method of "datagram".  (Search the forums and the knowledge base for a lot of discussion on these).

As near as I can tell, only one application on the device can have a connector MessageConnection open at the same time, sending or receiving.  My experience has been that if my trys app to open a MessageConnection and some other app holds an open (to, for example to monitor incoming SMS), throws me app ' net.rim.device.api.io.IOPortAlreadyBoundException: Port of SMS already in use.

Does this sound right?  Here is the part of the rant - why anyone would use the MessageConnection?   If my above assumption is correct, it seems irresponsible and causing compatibility problems.

In its current form, my application uses datagram for listening for SMS and opens a new MessageConnection when you try to send an SMS.  If it throws an exception, it switches to the datagram.  So far, it seems to work, except for one close that I didn't understand yet - a user sees that all the envoys of the SMS sent via datagram that passes through as a confused mess or seemingly random characters.   I did not understand that the still - it's a beta-tester who is to see this.

Thanks for any idea.

Scott

Generally, there is the risk that the person who receives an SMS that was sent through the datagram will not be able to correctly interpret the payload, which is just an array of bytes.

Second, have you tried to use the port number 0 when you subscribe to a receiver of messages?

smsMessageConnection = (MessageConnection)Connector.open("sms://:0");

smsMessageConnection.setMessageListener (AskForBirthdayRequestResponseHandler.getInstance ());

Tags: BlackBerry Developers

Similar Questions

  • Why use authorization holds by updating an application?

    Why use authorization holds when updated already bought apps?

    If your method of payment changed or updated, it must be scrutinised. Your account must have the means of payment which is in order, regardless of the cost, even if it's free.

  • The logon method, you use...

    Hello

    My problem is: I can't log on to an RODC with the user name and password, even with another account, I created before. I always get the message: the logon method, you use is not allowed on this computer.

    The local administrator does not either so all the hits on google are useless because they include the local administrator account.

    Can someone tell me why is this happening all of a sudden? I don't have any changes. I left the DC for a while (2-3 hours) and when I came back the screen was locked (for inactivity). When I tried to log on again the system wont let me do it.

    Any suggestions?

    BTW: 2012R2

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • Why use an abstract class?

    I am new to Java, and for some reason I can't get my head around why use an abstract class. I understand that an abstract class is something like:
    public abstract class Food{ // abstract class
    
    public void eat(){
    // stub
    }
    
    }
    
    public class Apple extends Food{
    
    public void eat(){
    // Eat an apple code
    }
    
    }
    So basically the idea above is that you can eat a "Apple", but you can't eat "food" because you cannot instantiate an abstract class.

    I understand what an abstract class is and how to write a. What I don't understand is why you would use it? It seems to me I might just create a normal class, called 'Food' and just do not instantiated. What are the benefits of using an abstract class?

    807479 wrote:
    If an abstract class should be used when you can implement fully some of the methods, but the other method can only be defined as heels?

    Fix.

    Note that Java abstract classes aren't necessary, but they add comfort and a way to correctly model the ideas we try to represent.

    That is why it must be abstract because you can not instantiate the class because not all methods are completely formed?

    Yes pretty close.

    So basically in an example of a mammal, I might have a breath() method entirely defined in the abstract class because all breath of mammals.
    But I should only do a method stub for speak() like any mammal makes a different sound.

    Right.

    Now I can not instantiate a mammal because it has only a stub for the speak() method so it must be an abstract class.

    Fix. There is no common way speak all mammals.

    But if I create a class called cow and extend the class mammal I only need to write the speak() method as I can inherit the breath() method completely trained.

    Is this correct? I am an abstract class if I can't entirely make up together the method. But I use an abstract class when I can form some of the methods?

    Your terminology is a little off, but, Yes, it seems that you have understood the concepts.

  • Why use partitioning and key-associator key features?

    Why use partitioning and key-associator key features?

    What kind of application are not suitable for the use of the features key-associator and partitioning key?
    Could you give me some examples?

    Thank you

    So the typical is to use KeyAssociation. It is a unique interface which uses a method

    public Object getAssociatedKey();

    I think that it works on the ClusterService level (rather than saying the Cache). For example, if you have a customer and a cache of account where a customer can have multiple accounts. Now, the customer and the account object will implement KeyAssociation and return the customer object as the AssociatedKey. This will cause these items to live on the same partition.

    Now you can do some clever tricks since you know that they are on the same partition. These include the use of the BackingMap and EntryProcessors / InvocationService / aggregators to return all AccountIds associated with a customer account (essentially a join).

    Unfortunately, these are enough consistency of the advanced so it is better to build first of all in a unit test and get them working before you include in your application.

    Best, Andrew.

    PS. You can also use the KeyPartitioningStrategy, but I prefer the KeyAssociation (like most people).

  • We tried the window. ResizeTo and window. Methods MoveTo using javascript. It doesn't seem to work in version 9.0.1. Please suggest any alternative.

    Hello
    We tried the window. ResizeTo and window. Methods MoveTo using javascript. It doesn't seem to work in version 9.0.1. Please suggest any alternative.

    Thank you
    Avinash

    This is no longer allowed for security reasons (bug 565541).

    See https://support.mozilla.org/nl/questions/880032

    https://developer.Mozilla.org/en/DOM/window.MoveTo

  • Why used my google chrome allows me to perform my real player downloads

    original title: why used my google chrome allows me to perform my downloads of real player, never had a problem before today

    I REINSTALLED GOOGLE CHROME ON MY LAPTOP BECAUSE THEY WOULDN'T LET ME NOT DOWN LOAD MY VIDEOS

    WELL, DID NOT HELP. WHY GOOGLE IS SO MESSED UP?

    Hello

    What version of the windows operating system is installed in the computer?

    Did you change to the computer?

    The problem is with Google chrome, I suggest you to contact Google chrome and check.

    http://support.Google.com/chrome/?hl=en

  • Why use of UTP Cable more than twisted pair cable twisted pair cable STP?

    Why use of UTP Cable more than twisted pair cable twisted pair cable STP?

    Hi stuckfree,

    UTP (Unshielded Twisted Pair) cables are the most commonly used cables for ethernet connections and have a number of advantages. They rely on the effect of cancellation caused by the twisting of the pairs of wires to handle noise, which is uses more than enough for most domestic. They are also smaller than STP (shielded twisted pair) cables, which makes them easier to install, especially in bulk or in narrow spaces. They are easier to install than the sewage and do not require the presence of a ground cable. UTP cables are also cheaper than the STP cables and do not require as much maintenance, since they do not rely on an external display, and can transmit data as fast as the STP cables.

    There is a lot of information available on the web. You can use your favorite search engine to learn more on similar to that mentioned by Richard above.

  • Why used my lifecam vx5500 work? XP - sp3 and ati 2400

    Why used my lifecam vx5500 work? XP - sp3 and ati 2400

    Hello

    1 how long have you been faced with this problem?
    2. don't you make changes on the computer before this problem?
    3. do you get an error message?

    Step 1: Try to run the fix it tool to the article below and check.

    Hardware devices do not work or are not detected in Windows
    http://support.Microsoft.com/mats/hardware_device_problems/

    Step 2: Download and install the drivers for the webcam using the link below.

    Drivers, software and documentation of your product
    http://www.Microsoft.com/hardware/en-us/d/LifeCam-VX-5500

  • Why used run chkdsk/f. so I can defragment

    Why used run chkdsk/f. so I can defragment

    Should be the space between chkdsk and / f?

    Select Start, run, type cmd and press ENTER. Type "chkdsk c: /f /r" without the quotes and press ENTER. Make sure you include the spaces indicated. Enter Y when asked if you want to run chkdsk on restart the computer. Quit and then restart the computer.

    Marking bad sectors on a hard disk takes time so be patient. Delimiting does not repair a defective sector. He places pointers to the reader by saying the system not to read or write to these areas that have been damaged.

    If the number of defective sectors continued to increase after using the procedure above several times, then you should replace the disk. If an important system file is written to a bad sector, you can corrupt the registry hives and lose the entire contents of the disc.

    However if have run chkdsk you not see more new bad sectors, then the reader can work for you for years.

  • Why used my computer install updates Java?

    Whenever I try to install a java update, it is said that he failed, because he cannot find java file. What's wrong? Why used it install the java updates?

    You don't say how you go about the installation, but I would like to uninstall all existing Java help:

    Start-> Control Panel-> programs & features ,

    Then, download and install the latest version from www.java.com .

  • Why used iTunes 10.2.1 (the most recent a necessary at the start of my iphone) load on my Vista computer?

    Why used itunes 10.2.1 (the most recent a necessary at the start of my iphone) onto my computer?

    Hello

    Follow the information from apple to the link below

    Remove and reinstall iTunes, QuickTime, and other software components for Windows Vista or Windows 7

    http://support.Apple.com/kb/HT1923

    and or ask for their support of itunes

    http://www.Apple.com/support/iTunes/

    Also try the discussions of apple itunes

    http://discussions.Apple.com/category.jspa?categoryID=149

  • Why used my Microsoft Office 2003 Download Download correctly? I have Windows 7 and I bought the copy of the program? __

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • Why used my Microsoft Office 2003 Download Download correctly? I have Windows 7 and I bought the copy of the program? you have problems with
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    You post this question in the wrong Forums.

    Here is the Vista Forums.

    Office:

    http://www.Microsoft.com/Office/Community/en-us/flyoutoverview.mspx

    Office newsgroups

    http://www.Microsoft.com/Office/Community/en-us/default.mspx?DG=Microsoft.public.Office.misc&lang=en&CR=us

    Discussions of general issues of the Office.

    They will help you with your office questions when repost you in the Office discussion groups above.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    For any question on Windows 7:

    http://social.answers.Microsoft.com/forums/en-us/category/Windows7

    Link above is Windows 7 Forum for questions on Windows 7.

    Windows 7 questions should be directed to the it.

    You are in the Vista Forums.

    See you soon.

    Mick Murphy - Microsoft partner

  • You cannot connect because the logon method, you use is not allowed on this computer. Please, see your network administrator for more information.

    Whenever I enter my correct password in my windows account it rejects a message and it comes up saying: "you cannot connect because the logon method, you use is not allowed on this computer." See your network administrator for more information. "I can't seem to be able to enable or disable anything because the profile I'm using on my computer is the profile of"Guest ".

    Karima,

    Applicable to Windows 7.

    The following steps require administrator credentials.

    • Use the Windows + R or "Run" in the start menu, then type gpedit.msc.
    • Navigate to Computer Configuration > Windows settings > local policies > user rights assignment > consider all policies "prohibit the newspaper on" to check if your guest account is listed. Remove account from the list, and you should be fine to continue using your guest profile.

    Good luck.

    James

  • Why used my computer let me download yahoo Messenger it repeat myself the firewall blocks?

    Why used my computer let me download yahoo Messenger it repeat myself the firewall blocks?

    The following link for the support of Yahoo Messenger gives troubleshooting instructions download and install error, including the error "unable to download files needed for installation.  Please check the firewall settings and try again. " http://help.yahoo.com/kb/index?Page=Content&ID=SLN20&ACTP=Search&viewlocale=en_US&searchID=1342472283156&locale=en_US&y=PROD_MSNG

Maybe you are looking for

  • FCP 7 to crash into long log & transfer

    I have one hour 45 minutes to connect and transfer the file turned on AVCHD 1920 x 1080 30 map scandisc.  I transferred to the media to my office on the assumption that the problem of crash came a card read the problem, but no go.  FCP still hangs ab

  • How to recharge the remote control for Apple TV 4

    How to recharge the remote control for Apple TV 4

  • Portege A600: cannot update bios 3.0

    My current bios version is 1.6, the latest is the 3.0When you try to update the bios, I receive an INSTALL2 APPCRASH. EXEexception code c000005 I tried to start it in safe mode, but that deer does not help Thanks for help

  • Message from PerianUpdateChecker.app...

    I work in the CF, and whenever I play a clip, or import a clip I get this annoying message "Unable to open 'PerianUpdateChecker.app' because it comes from an unidentified developer."  No idea on what do I do o fix this? I am looking for a little and

  • I don't remember my security answers

    Hi can tell me please how to reset my security questions that I don't remember the answers cordially Warren