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: 44
Registered: ‎08-06-2009
My Device: Not Specified

Difference in Different ways to listen for SMS messages

Hello,

 

In KB Article Number: DB-00579,3 methods are listed for listening to SMS messages.  What are the main differences between the3 methods?

 

I am pretty sure they all work with J2ME/MIDlets and BB/UiApplications - I want to implement an SMSListener for the purpose of just being notiied if the system is recieveing an SMS.

It seems implementing MessageListener and using notifyIncomingMessage(MessageConnection mc) is the best way to do this?

 

The other two run a for(;Smiley Wink loop so they don't seem to be optimized for "always on" functionality.

 

Thank you for any help.