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
chrischen9999
Posts: 2
Registered: ‎08-11-2008
My Device: Not Specified
Accepted Solution

add a keyListener to BlackBerry email client

Hi,

 

I am new to BlackBerry Java development and find this forum really useful. The problem I am trying to solve is to hook a keyListener to the existing BlackBerry email client (MessageApplication).  My application is a background process (running as system module at start up). I was able to add a menu item to the email client by using the ApplicationMenuItemRepository.getInstance().addMenuItem method without a problem. However, I had a hard time to install a keyListener to the MessageApplication so that my listener will get invoked when the user click a certain key in the BlackBerry email client.

 

I am not sure if this is possible, but I guess since we can hook up the menu item, then we should be able to hook the keyListener as well. Please advise.

 

Thanks in advance for your help.

 

Chris 

Please use plain text.
Administrator
MSohm
Posts: 14,410
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: add a keyListener to BlackBerry email client

This is not supported.  Applications can only listen for key/trackball/trackwheel events when they have screen in the foreground.
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
Please use plain text.
New Developer
chrischen9999
Posts: 2
Registered: ‎08-11-2008
My Device: Not Specified

Re: add a keyListener to BlackBerry email client

Thanks for the info.
Please use plain text.