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: 71
Registered: ‎06-26-2009
My Device: Curve 8310

getAddress on TextMessage object returns sms://+

Hi

 

I don't know if this is expected behaviour, but I'm implementing an OutboundMessageListener and getting a TextMessage object like this:

 

 

public void notifyOutgoingMessage(Message msg) { try { TextMessage txt = (TextMessage) msg;

 

 Then if I call getAddress on the TextMessage object it returns sms://+, always, not the recipient's number, how can I check where the message was sent to? getPayloadText works fine.

 

Give kudos if somebody helps you, also mark accepted if it solves your problem. Search first, then post. Please respect RFC-1855 when posting on forums.

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: getAddress on TextMessage object returns sms://+

You sending the message programatically?

 

Which device and OS you tested on?


Use Search. "Accept Solution" If the problem is resolved.
Developer
Posts: 71
Registered: ‎06-26-2009
My Device: Curve 8310

Re: getAddress on TextMessage object returns sms://+

Running on BlackBerry 8800 Simulator on JDE 4.2.1. Having some problems getting my app to run on a real device due to a problem with auto-run.

Give kudos if somebody helps you, also mark accepted if it solves your problem. Search first, then post. Please respect RFC-1855 when posting on forums.

Trusted Contributor
Posts: 151
Registered: ‎07-20-2010
My Device: Not Specified

Re: getAddress on TextMessage object returns sms://+

how to get rid of the "sms://" ?

Trusted Contributor
Posts: 151
Registered: ‎07-20-2010
My Device: Not Specified

Re: getAddress on TextMessage object returns sms://+

got it Smiley Happy used the split function