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: 40
Registered: ‎08-04-2008
My Device: Not Specified
Accepted Solution

BlackBerry Messenger message

Hi,

 

I want to do something like the browser app where when there is a new BB Messenger message, something shows up on the title bar of my app.

 

How do I listen for a BB Messenger event? I see in the OS 4.2.1 API, you can do BlackBerryMessenger.registerServer(<param>) but it isn't very clear how to construct a service.

 

Anyone knows or can provide a quick code snippet on how to register a listener for BB Messenger?

 

Thanks.

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: BlackBerry Messenger message

The BlackBerry Messenger APIs do not support listening for all incoming messages, only those for a session registered by an application.  Have a look at the tictactoedemo included with the BlackBerry JDE for an example.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 40
Registered: ‎08-04-2008
My Device: Not Specified

Re: BlackBerry Messenger message

Thanks Mark.