Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
benwlink
Posts: 4
Registered: ‎11-02-2009

Re: Overpopulate the number for sending SMS-SMS Sending fails due to Illegal Argument Exception

Can you let me know what you did to resolve this?

 

Thanks!

Please use plain text.
Developer
Bhattacharyya
Posts: 33
Registered: ‎09-08-2009

Re: Overpopulate the number for sending SMS-SMS Sending fails due to Illegal Argument Exception

SMS API expects the phone number in a format different from the one which we display on the device.

Removed the brackets and the spaces from the phone number.
    

Please use plain text.
Developer
prabhu_mp_99
Posts: 93
Registered: ‎08-17-2009

Re: Overpopulate the number for sending SMS-SMS Sending fails due to Illegal Argument Exception

Hi Bhattacharyya,

 

Could you tell me how did you resolve this exactly how did you provide the number? For example, i have to send SMS programmatically for a GSM number as +91-9845679234 . How can i provide this in "MessageConnection msgConn = (MessageConnection)Connector.open("sms://"); " ?

 

Appreciate if you could help me.

Please use plain text.
Developer
konic
Posts: 173
Registered: ‎06-11-2009

Re: Overpopulate the number for sending SMS-SMS Sending fails due to Illegal Argument Exception

[ Edited ]

I think, you just have to remove dash ('-'), keep plus ('+') 'though.

Something like this:

"sms://+919845679234"

Please use plain text.