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.

inside custom component

Java Development

Reply
Developer
Posts: 56
Registered: ‎07-15-2008
My Device: Not Specified

How do you add multiple recipients to an SMS?

Is there any way to programmatically add recipients to an SMS. I can't seem to find the solution. I am currently using

Invoke.invokeApplication() to initiate a new SMS message, but I want to be able to programmatically add recipients to that SMS, like you can interactively using the Menu --> Add Recipient. Is this possible?

Developer
Posts: 507
Registered: ‎07-15-2008
My Device: Not Specified

Re: How do you add multiple recipients to an SMS?

Look at SMSDemo into Java Development Environment samples folder.

 

If JDE is installed on C:\APPS\JDE

 

this sample is located at: C:\APPS\JDE\samples\com\rim\samples\device\smsdemo

 

 

----------------
if your issue solved set "Solution" mark at the relevant post
Developer
Posts: 56
Registered: ‎07-15-2008
My Device: Not Specified

Re: How do you add multiple recipients to an SMS?

The SmsDemo simply fires-off multiple SMS messages, all having a single address. Is that how RIM actually does it with their own built-in SMS client? I was hoping there was a way to actually send only one message but with multiple recipients. Does anyone know if that is even possible with SMS? I was also hoping to invoke RIM's built-in SMS app for sending the message, and simply adding multiple recipients programmatically just like you can do interactively.

 

Does anyone know if RIM's API even allows for this?

BlackBerry Development Advisor
Posts: 15,727
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: How do you add multiple recipients to an SMS?

There are no APIs to do this directly.  You could do this from the Messages application using event injection to inject the appropriate trackball and key events to select the option from the menu and fill in the additional numbers.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker