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

Re: Unread SMS / Catch SMS

I was able to "listen" to incoming SMS messages with the simulator.

 

Basically I fired up the "Server" side application, and used the listen thread side (copy & paste of the smsdemo). The only difference was that I set the _openstring to "sms://:0", this seemed to do the trick for me.

 

 Nb. It didn't matter what destination # I was sending to - it looks like the sms server just echos it back.

Developer
Posts: 81
Registered: ‎07-16-2008
My Device: Curve - 8320
My Carrier: AirTel

Re: Unread SMS / Catch SMS

[ Edited ]

ZERO is the default SMS port. If you open the connection on port 0, it will read SMS that are suppose to appear in the Inbox.

 

 Use of "sms://:" with Connector.open() will cause the error  "java.lang.IllegalArgumentException: Illegal opening string"

 Use of "sms://"  with Connector.open() will cause the error  "Operation not permitted on a Client Connection"

 Use of "sms://:0" with Connector.open() will work as desired.

 

 

Message Edited by VipulPathak on 10-05-2008 05:19 PM
*(Vipul)() ;
Highlighted
New Developer
Posts: 5
Registered: ‎06-10-2009
My Device: Storm 9530

Re: Unread SMS / Catch SMS

Any ideas as to why BlackBerry will not allow us access to the SMS msg stores?.?

 

G

 

Ref:  http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=41805&jump=true#M...