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
Highlighted
Regular Contributor
Posts: 52
Registered: ‎02-26-2013
My Device: Curve 9650,Bold 9900
My Carrier: Airtel
Accepted Solution

How to add KeyListener in MainScreen

Hi

 I have tried to add  keyListener interface in my class which extends MainScreen, but when i implement this the class show error.

KeyListener easily works with normal class or a class that extends UiApplication.

How could i implements this ...!

 

Thanks is advance.

 

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to add KeyListener in MainScreen

MainScreen already implements KeyListener, you can just overwrite the method you need.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Regular Contributor
Posts: 52
Registered: ‎02-26-2013
My Device: Curve 9650,Bold 9900
My Carrier: Airtel

Re: How to add KeyListener in MainScreen

Thanks a lot Mr. Simon_hain

 your solution works good..!