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
Contributor
Posts: 20
Registered: ‎03-09-2010
My Device: Blackberry Bold
My Carrier: SingTel

Redundant To Field in SMS Application

Hi,

 

I'm calling SMS Application with the following code. Everything works fine but there is always an extra To Field in the SMS Application. How can I get rid of the extra To Field?

 

 

 try {
                MessageConnection mc = (MessageConnection)Connector.open("sms://");
                TextMessage textMessage = (TextMessage) mc.newMessage(MessageConnection.TEXT_MESSAGE);
                textMessage.setAddress(smsAddress);
                textMessage.setPayloadText(txt);
                Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new MessageArguments(textMessage));
            }
            catch(Throwable e) {
                Dialog.alert(e.getMessage());
            }