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
sainikchat
Posts: 73
Registered: ‎09-01-2009
My Device: Not Specified

Re: Unable to send SMS on Verizon device

[ Edited ]

"This can be accomplished by using the EventInjector and injecting the trackball/wheel commands to send the message using the menu."

 

 

 

NOT WORKING ....if you ever use this then reply please

 

MessageConnection mc = (MessageConnection) Connector
                        .open("sms://");
                TextMessage m = (TextMessage) mc
                        .newMessage(MessageConnection.TEXT_MESSAGE);
                m.setAddress("sms://5558888");
                m.setPayloadText("An SMS Message for you");
                Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES,
                        new MessageArguments(m));
                EventInjector.KeyCodeEvent pressMenuKey = new EventInjector.KeyCodeEvent(
                        KeyCodeEvent.KEY_DOWN, (char) Keypad.KEY_MENU, 0);
                EventInjector.KeyCodeEvent releaseMenuKey = new EventInjector.KeyCodeEvent(
                        KeyCodeEvent.KEY_UP, (char) Keypad.KEY_MENU, 0);
                EventInjector.TrackwheelEvent pressTrackBall = new EventInjector.TrackwheelEvent(
                        TrackwheelEvent.THUMB_CLICK, 0, 0);
                EventInjector.TrackwheelEvent releaseTrackBall = new EventInjector.TrackwheelEvent(
                        TrackwheelEvent.THUMB_UNCLICK, 0, 0);
                EventInjector.invokeEvent(pressMenuKey);
                EventInjector.invokeEvent(releaseMenuKey);
                EventInjector.invokeEvent(pressTrackBall);
                EventInjector.invokeEvent(releaseTrackBall);

Developer
sudhakar_koundinya
Posts: 66
Registered: ‎01-14-2010
My Device: 8700

Re: Unable to send SMS on Verizon device

Datagram Connection is not working in all cases. Do we have any contructive and full proof solution for sending SMS on CDMA devices?

 

Developer
amutzmercier
Posts: 16
Registered: ‎10-27-2008
My Device: Bold

Re: Unable to send SMS on Verizon device

I'd like to bump this thread. Has anyone successfully written code to programatically send SMS (without using the EventInjector) across all devices and carriers?