2010/06/15

Sending an SMS on BlackBerry

While reading documentation on SMS sending in BlackBerry JDE JavaDocs you come across a fact that several important parts are missing.
Documentation mentions SMS 'port', a number you are supposed to write after the phone, using the :123 format. Googling, you might see on many sites a random number provided, then on others you see a + sign used in the phone number.
Don't believe the hype!
Here's a simple function, that, given a phone number (just digits) and SMS text, will simply send a SMS or return false in case something bad happens. Easy peasy!




No comments:

Post a Comment