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
Highlighted
New Developer
Posts: 7
Registered: ‎09-18-2008
My Device: Not Specified

SMS API in Bold (threaded SMS)

Hi,

 

I am using the following to launch the SMS compose screen with body and it seems to work fine in all the devices except for Bold where we have Threaded SMS app. Is there a workaround to do this in threaded sms as well?

 

MessageConnection mc = null;
                try {
                    mc = (MessageConnection) Connector.open("sms://");
                } catch (IOException e1) {
                    // #ifdef LOG_ENABLED
                    Utils.printLog(e1.getMessage());
                    // #endif
                    return false;
                }
                TextMessage txtmsg = (TextMessage) mc
                        .newMessage(MessageConnection.TEXT_MESSAGE);
                txtmsg.setPayloadText((String) param);
                Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES,
                        new MessageArguments(txtmsg));